onaaction/timesfm-business-forecasting
0
TimesFM Business Forecasting API
Hybrid forecasting server combining Google's TimesFM with custom business intelligence.
Features
- Google TimesFM 1.0: Official forecasting model from Google Research
- Seasonality Detection: Automatic business cycle identification
- Business Insights: AI-generated recommendations and risk assessment
- Fallback System: Pure Python backup if GPU unavailable
API Usage
# Health check
curl https://yourspace.hf.space/health
# Forecast with business insights
curl -X POST https://yourspace.hf.space/forecast \
-H "Content-Type: application/json" \
-d '{"data": [100, 120, 110, 150, 180], "horizon": 6, "ai_insights": true}'Response Format
{
"success": true,
"point_forecast": [190.5, 195.2, 198.7, 201.1, 203.8, 206.2],
"seasonality": {
"has_seasonality": false,
"type": "none"
},
"business_insights": {
"trend": "Forte croissance récente détectée. Opportunité d'expansion.",
"forecast": "Prévisions optimistes. Préparer scaling ressources.",
"risk": "Volatilité modérée. Maintenir flexibilité opérationnelle."
},
"model_version": "Google-TimesFM-1.0-200M-HF"
}Powered by Google TimesFM + Custom Business Intelligence
