Closed huangtu577 closed 4 months ago
Thank you!! This is a great find. I'll get on it soon. Since SINDy.model
is a Pipeline
, this should be a reasonably easy fix
Hi,
I just wanted to mention that the version that you have on Conda-forge is not up to date, and results on the same issues.
Just that.
Hi,
Is there any (quick) fix to this available?
@ddeboerfluid The quick fix is to install an updated version, either from pypi or here. Actually, it looks like this bug was fixed at least two years ago, which is where the blame of the most recent normalization code points (b9fc48c2).
We'll be releasing a new version shortly, but you can always get the current version with
pip install git+https://github.com/dynamicslab/pysindy
@ggmirandac, it was only put on conda-forge a few years ago manually by a previous maintainer. I don't personally use conda, but I would be happy for a PR into .github/workflows/release.yml to automate that release.
from sklearn.linear_model import LinearRegression
lr = LinearRegression()
can also works
I just installed the PySINDy library, and it throws an
TypeError: LinearRegression.__init__() got an unexpected keyword argument 'normalize'
out of the box. The version that conda installed forscikit-learn
without any specification is1.4.2
. According to the Changelog fromscikit-learn
, thenormalize
keyword has been deprecated since version1.0
and removed since1.2
. However there is a proposed fix in the above linked changelog.Reproducing code example:
Error message:
PySINDy/Python version information:
1.3.0 3.10.14 (main, May 6 2024, 19:42:50) [GCC 11.2.0]