Downloads a forecasting model and prepares it. By default the model runs in a Web Worker on WebGPU, falling back to WASM.
const model = await loadForecaster({ model: "chronos-bolt-small" });const [forecast] = await model.forecast([dailySignups], { horizon: 30 });const { anomalies } = await model.detectAnomalies(dailySignups); Copy
const model = await loadForecaster({ model: "chronos-bolt-small" });const [forecast] = await model.forecast([dailySignups], { horizon: 30 });const { anomalies } = await model.detectAnomalies(dailySignups);
Downloads a forecasting model and prepares it. By default the model runs in a Web Worker on WebGPU, falling back to WASM.