forecast-web
    Preparing search index...

    Interface ForecasterState

    What useForecaster returns: load state and the model's actions.

    interface ForecasterState {
        backend: Backend | null;
        error: Error | null;
        progress: Progress | null;
        status: ForecasterStatus;
        detectAnomalies(
            series: Series,
            opts?: AnomalyOptions,
        ): Promise<AnomalyResult>;
        forecast(series: Series[], opts?: ForecastOptions): Promise<Forecast[]>;
        load(): Promise<Forecaster>;
    }
    Index
    • Starts the download if needed and resolves when the model is ready.

      Returns Promise<Forecaster>

    backend: Backend | null
    error: Error | null
    progress: Progress | null