ydataai / ydata-synthetic

Synthetic data generators for tabular and time-series data
https://docs.synthetic.ydata.ai
MIT License
1.44k stars 236 forks source link

[BUG] #231

Closed ActurialCapital closed 1 year ago

ActurialCapital commented 1 year ago

Describe the bug On colab: ValueError: Input 0 of layer "model_3" is incompatible with the layer: expected shape=(None, 24, 6), found shape=(128, 6)

To Reproduce Used yfinance instead of the example csv

!pip install yfinance
stock_data = yf.download("AAPL", start="2017-01-01", end="2023-01-30")

Screenshots Error message:

Screenshot 2023-02-13 at 21 12 57
ActurialCapital commented 1 year ago

Oops! To test the package with data from yahoo.

  1. from ydata_synthetic.preprocessing.timeseries.utils import real_data_loading
  2. stock_data = real_data_loading(yf.download("AAPL", start="2017-01-01", end="2023-01-30").values, seq_len=seq_len)