Skip to content
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

cant import functions #354

Open
learning-freak opened this issue Feb 2, 2025 · 2 comments
Open

cant import functions #354

learning-freak opened this issue Feb 2, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@learning-freak
Copy link

learning-freak commented Feb 2, 2025

Hello
I try to reproduce this : https://docs.synthetic.ydata.ai/2.0/synthetic_data/time_series/timegan_example/#using-timegan-to-generate-synthetic-time-series-data
i followed this : https://docs.synthetic.ydata.ai/2.0/getting-started/installation/
but got errors :

# Importing necessary libraries
import pandas as pd
from os import path
import matplotlib.pyplot as plt
from ydata_synthetic.synthesizers.timeseries import TimeSeriesSynthesizer
from ydata_synthetic.synthesizers import ModelParameters, TrainParameters

for every line with ydata_synthetic :

  1. error 1
from ydata_synthetic.synthesizers.timeseries import TimeSeriesSynthesizer

ImportError: cannot import name 'TimeSeriesSynthesizer' from 'ydata_synthetic.synthesizers.timeseries'
  1. error 2
from ydata_synthetic.synthesizers import ModelParameters, TrainParameters
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[7], line 1
----> 1 from ydata_synthetic.synthesizers import ModelParameters, TrainParameters

ImportError: cannot import name 'ModelParameters' from 'ydata_synthetic.synthesizers'

how to fix it ?

@learning-freak learning-freak added the bug Something isn't working label Feb 2, 2025
@harshpatel1242
Copy link

Not sure about the particular error. Idk if they have not updated their documentation or this is the another way or not. but if you want to use TimeGAN particularly.

you can import like this. this is working for me.
from ydata_synthetic.synthesizers import TimeGAN

@learning-freak
Copy link
Author

Not sure about the particular error. Idk if they have not updated their documentation or this is the another way or not. but if you want to use TimeGAN particularly.

you can import like this. this is working for me. from ydata_synthetic.synthesizers import TimeGAN

okay, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants