Skip to content

Commit

Permalink
Fix uninformative error message for best_row; fixes #100
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Feb 2, 2022
1 parent d94ce53 commit de2d4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysr/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def best(*args, **kwargs):

def best_row(*args, **kwargs):
raise NotImplementedError(
"`best_row` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can run `print(model)` to view the best equation."
"`best_row` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can run `print(model)` to view the best equation, or `model.get_best()` to return the best equation's row in `model.equations`."
)


Expand Down

0 comments on commit de2d4ba

Please sign in to comment.