Git Product home page Git Product logo

Comments (4)

jmoralez avatar jmoralez commented on June 4, 2024

Hey @LGsus20, thanks for using statsforecast. Do you have any NaNs in your data? i.e. does Y_df['y'].isnull().sum() return a positive number?

from statsforecast.

LGsus20 avatar LGsus20 commented on June 4, 2024

It returns 0

from statsforecast.

jmoralez avatar jmoralez commented on June 4, 2024

Can you provide a small reproducible example (reference)?

from statsforecast.

LGsus20 avatar LGsus20 commented on June 4, 2024

Im using pycharm and python 3.10, I didn't have this problem when I was using 13,000 values, I suppose there's a limit on how many values AutoCES can handle. I don't have this problem with AutoARIMA, AutoRegressive, LSTM, PatchTST, AutoETS, AutoLSTM, and AutoTheta

CODE:

from statsforecast import StatsForecast
from statsforecast.models import AutoARIMA, AutoCES
import pandas as pd
import numpy as np

PATH = "https://raw.githubusercontent.com/LGsus20/Weather-Forecasting-Scraping/main/Forecasting_Code/DATASET_Modified_Monthly_2022-2024.csv"
Y_df = pd.read_csv(PATH).assign(unique_id=np.ones(len(pd.read_csv(PATH))))
print("Starting processing")
models = [
#    AutoARIMA(season_length=24),
    AutoCES(season_length=24)
]

sf = StatsForecast(
    models=models,
    freq='h',
    n_jobs=-1
)

Y_hat_df = sf.forecast(df=Y_df, h=6)
sf.fit(df=Y_df)
Y_hat_df = sf.predict(h=6)
Y_hat_df.head(6)

from statsforecast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.