You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/Users/<USERNAME>/anaconda3/envs/py312/lib/python3.12/site-packages/synthcity/plugins/core/models/survival_analysis/metrics.py", line 8, in <module>
from scipy.integrate import trapz
ImportError: cannot import name 'trapz' from 'scipy.integrate' (/Users/<USERNAME>/anaconda3/envs/py312/lib/python3.12/site-packages/scipy/integrate/__init__.py)
however, after you fix this trapz error you also get the OrdinalEncoder error when you try to fit a model
Expected Behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System Information
OS: mac
OS Version: 14.6.1
Language Version: python 3.12
Package Manager Version: conda 24.1.2
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
I tried again using python 3.10 but got the same error
ImportError: cannot import name 'trapz' from 'scipy.integrate' (/Users/<USERNAME>/anaconda3/envs/py310/lib/python3.10/site-packages/scipy/integrate/__init__.py)
Description
Installing the latest release produces quite a few errors. Is there any chance you could fix them?
e.g. in
synthcity/plugins/core/models/survival_analysis/metrics.py
I had to updatefrom scipy.integrate import trapz
tofrom scipy.integrate import trapezoid as trapz
I also needed to install a specific version of
pydantic
. See this issueI also needed to edit
synthcity/plugins/core/models/tabular_encoder.py
go to theOrdinalEncoder
and changesparse -> sparse_output
Many thanks!
How to Reproduce
Then in python try using synthcity
with traceback
however, after you fix this
trapz
error you also get the OrdinalEncoder error when you try to fit a modelExpected Behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System Information
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: