Closed ggmirandac closed 3 weeks ago
Interesting. I was not able to reproduce, either on current master or on commit 024bc9e
. The functions behaved like they should.
What was the output of the pip install?
Yeah, sure, Here it is: I try the same pip command:
pip3 install "pysindy[sbr]@git+https://github.com/dynamicslab/pysindy"
Then: This is the pip output:
Collecting pysindy@ git+https://github.com/dynamicslab/pysindy (from pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy)
Cloning https://github.com/dynamicslab/pysindy to /private/var/folders/q9/tkrlgcq55bl3f5qwz6jzws_r0000gn/T/pip-install-4xl5chx0/pysindy_496e6a7664f74c239826b8ba12609d89
Running command git clone --filter=blob:none --quiet https://github.com/dynamicslab/pysindy /private/var/folders/q9/tkrlgcq55bl3f5qwz6jzws_r0000gn/T/pip-install-4xl5chx0/pysindy_496e6a7664f74c239826b8ba12609d89
Resolved https://github.com/dynamicslab/pysindy to commit 3503c158e4e8a89163c300e47f827ab4f45e53fd
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: scikit-learn!=1.5.0,>=1.1 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (1.4.1.post1)
Requirement already satisfied: derivative>=0.5.4 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.6.1)
Requirement already satisfied: numpyro in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.15.0)
Requirement already satisfied: jax in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.4.25)
Requirement already satisfied: arviz==0.17.1 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.17.1)
Requirement already satisfied: scipy<1.13.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (1.12.0)
Requirement already satisfied: setuptools>=60.0.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (69.2.0)
Requirement already satisfied: matplotlib>=3.5 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (3.8.3)
Requirement already satisfied: numpy<2.0,>=1.22.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (1.24.4)
Requirement already satisfied: packaging in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (24.0)
Requirement already satisfied: pandas>=1.4.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (2.2.1)
Requirement already satisfied: xarray>=0.21.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (2024.3.0)
Requirement already satisfied: h5netcdf>=1.0.2 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (1.3.0)
Requirement already satisfied: typing-extensions>=4.1.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (4.10.0)
Requirement already satisfied: xarray-einstats>=0.3 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.7.0)
Requirement already satisfied: joblib>=1.2.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from scikit-learn!=1.5.0,>=1.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (1.3.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from scikit-learn!=1.5.0,>=1.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (3.4.0)
Requirement already satisfied: ml-dtypes>=0.2.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from jax->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.3.2)
Requirement already satisfied: opt-einsum in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from jax->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (3.3.0)
Requirement already satisfied: jaxlib>=0.4.14 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from numpyro->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.4.23.dev20240224)
Requirement already satisfied: multipledispatch in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from numpyro->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.6.0)
Requirement already satisfied: tqdm in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from numpyro->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (4.66.2)
Requirement already satisfied: h5py in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from h5netcdf>=1.0.2->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (3.10.0)
Requirement already satisfied: contourpy>=1.0.1 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from matplotlib>=3.5->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (1.2.0)
Requirement already satisfied: cycler>=0.10 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from matplotlib>=3.5->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from matplotlib>=3.5->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (4.50.0)
Requirement already satisfied: kiwisolver>=1.3.1 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from matplotlib>=3.5->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (1.4.5)
Requirement already satisfied: pillow>=8 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from matplotlib>=3.5->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (10.2.0)
Requirement already satisfied: pyparsing>=2.3.1 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from matplotlib>=3.5->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from matplotlib>=3.5->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (2.9.0)
Requirement already satisfied: pytz>=2020.1 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from pandas>=1.4.0->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (2024.1)
Requirement already satisfied: tzdata>=2022.7 in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from pandas>=1.4.0->arviz==0.17.1->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (2024.1)
Requirement already satisfied: six in ./micromamba/envs/VenturelliLab/lib/python3.10/site-packages (from multipledispatch->numpyro->pysindy@ git+https://github.com/dynamicslab/pysindy->pysindy[sbr]@ git+https://github.com/dynamicslab/pysindy) (1.16.0)
Building wheels for collected packages: pysindy
Building wheel for pysindy (pyproject.toml) ... done
Created wheel for pysindy: filename=pysindy-1.7.6.dev346+g3503c15-py3-none-any.whl size=128987 sha256=ee995e8888ecf1c68326ee8522c6040091d2870c5f9e20b91f0b4dcf54db62e1
Stored in directory: /private/var/folders/q9/tkrlgcq55bl3f5qwz6jzws_r0000gn/T/pip-ephem-wheel-cache-9zpie3td/wheels/67/70/e9/7fe05f22d0972893ddacb2ad333099204bdbefbab173594a2d
Successfully built pysindy
Installing collected packages: pysindy
Successfully installed pysindy-1.7.6.dev346+g3503c15
Hi,
I manage to solve it somehow. The main issue is that the package cvxpy was not installed in the dependencies of the package, so I had to manually installed it.
Bests,
Hi,
I am trying to use the SBR optimizer in my pipeline to enhance the pipeline by allowing for uncertainty quantification.
To do so, I follow the steps at #496. And use the following shell command to install the version with the SBR optimizer:
Following that, I try to use the SBR optimizer and got the following: Code:
Error:
And there are problems by using the other optimizers: For example:
Error:
PySINDy/Python version information:
Version: PySINDy:
1.7.6.dev335+g024bc9e 3.10.14
Python:3.10.14