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
)
 
despite is the standard instruction were officially given . Thanks