MilesCranmer commited on
Commit
87f1eda
1 Parent(s): d2c7df2

docs: don't recommend PCA

Browse files
Files changed (1) hide show
  1. pysr/sr.py +1 -7
pysr/sr.py CHANGED
@@ -2060,13 +2060,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
2060
  "Note: you are running with 10 features or more. "
2061
  "Genetic algorithms like used in PySR scale poorly with large numbers of features. "
2062
  "You should run PySR for more `niterations` to ensure it can find "
2063
- "the correct variables, "
2064
- "or, alternatively, do a dimensionality reduction beforehand. "
2065
- "For example, `X = PCA(n_components=6).fit_transform(X)`, "
2066
- "using scikit-learn's `PCA` class, "
2067
- "will reduce the number of features to 6 in an interpretable way, "
2068
- "as each resultant feature "
2069
- "will be a linear combination of the original features. "
2070
  )
2071
 
2072
  # Assertion checks
 
2060
  "Note: you are running with 10 features or more. "
2061
  "Genetic algorithms like used in PySR scale poorly with large numbers of features. "
2062
  "You should run PySR for more `niterations` to ensure it can find "
2063
+ "the correct variables, and consider using a larger `maxsize`."
 
 
 
 
 
 
2064
  )
2065
 
2066
  # Assertion checks