New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] AttributeError: can't set attribute in "Introduction to SINDy" ipynb #131
Comments
Ah, got you! Sorry, I didn't search closed issues for this - maybe leave one open until the bug is fixed? |
Agreed, #124 is still open but maybe not very descriptive... I'll see if I can edit the title |
I still get the error. Any idea about solving it? `--------------------------------------------------------------------------- File ~/anaconda3/envs/drl/lib/python3.9/site-packages/pysindy/pysindy.py:292, in SINDy.fit(self, x, t, x_dot, u, multiple_trajectories, unbias, quiet) File ~/anaconda3/envs/drl/lib/python3.9/site-packages/sklearn/pipeline.py:378, in Pipeline.fit(self, X, y, **fit_params) File ~/anaconda3/envs/drl/lib/python3.9/site-packages/sklearn/pipeline.py:336, in Pipeline._fit(self, X, y, **fit_params_steps) File ~/anaconda3/envs/drl/lib/python3.9/site-packages/joblib/memory.py:349, in NotMemorizedFunc.call(self, *args, **kwargs) File ~/anaconda3/envs/drl/lib/python3.9/site-packages/sklearn/pipeline.py:870, in _fit_transform_one(transformer, X, y, weight, message_clsname, message, **fit_params) File ~/anaconda3/envs/drl/lib/python3.9/site-packages/sklearn/base.py:870, in TransformerMixin.fit_transform(self, X, y, **fit_params) File ~/anaconda3/envs/drl/lib/python3.9/site-packages/pysindy/feature_library/polynomial_library.py:170, in PolynomialLibrary.fit(self, x, y) AttributeError: can't set attribute ` |
What are your versions of pysindy and scikit-learn? |
pysindy = 1.3.0 |
It has been solved on newer versions of PySINDy. |
The part that uploads to pypi will only run on the public repo, the build part can also run in the private repo. The whole job is only triggered when a tag is created.
I copied the code from
examples/2_introduction_to_sindy.ipynb
into a Python script. When I ran the code, I encountered an AttributeError when fitting the model.Reproducing code example:
Error message:
PySINDy/Python version information:
The text was updated successfully, but these errors were encountered: