Skip to content

cant import functions #354

@learning-freak

Description

@learning-freak

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions