MilesCranmer / PySR

High-Performance Symbolic Regression in Python and Julia
https://astroautomata.com/PySR
Apache License 2.0
2.11k stars 198 forks source link

weight_optimize not a valid argument for regressor #279

Closed MilesCranmer closed 1 year ago

MilesCranmer commented 1 year ago

Discussed in https://github.com/MilesCranmer/PySR/discussions/278

Originally posted by **krn-hov** March 15, 2023 When I try and set the weight_optimize parameter I get the TypeError: weight_optimize is not a valid keyword argument for PySRRegressor. The regressor should update automatically I thought, in case this should be a version issue. But yes, I am curious if others are able to set this parameter. Especially since I want to use a large ncyclesperiteration.
MilesCranmer commented 1 year ago

@krn-hov what PySR version? It's a parameter so I can set it on my end.

krn-hov commented 1 year ago

I am running version 0.11.6. I tried rerunning the pysr.install() command as well but it didn't make a difference. weight_optimize_error.txt

MilesCranmer commented 1 year ago

Oh, the current version is v0.11.17. weight_optimize was only introduced in a more recent version, it's not available in 0.11.6. So run pip install -U pysr to update PySR (followed by pysr.install()).

MilesCranmer commented 1 year ago

Closing this as it appears to be a version issue. Don't hesitate to reopen if still giving problems!

Cheers, Miles