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

TypeError: TimesFmBase.__init__() got an unexpected keyword argument 'context_len' #195

Open
thks-for-the-help opened this issue Dec 1, 2024 · 0 comments

Comments

@thks-for-the-help
Copy link

import pandas as pd
import numpy as np
import timesfm as tf

# Carica il file CSV
df = pd.read_csv("file.csv", parse_dates=["Datetime"])
df = df.set_index("Datetime")

# Configurazione del modello
tfm = tf.TimesFm(
    context_len=128,  # Contesto massimo (modificabile)
    horizon_len=5,    # Orizzonte di previsione
    input_patch_len=32,
    output_patch_len=128,
    num_layers=20,
    model_dims=1280,
    backend="gpu",    # Cambia in "cpu" se necessario
)

I receive back:

TypeError: TimesFmBase.init() got an unexpected keyword argument 'context_len'

despite is the standard instruction were officially given . Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant