High-performance time series forecasting with Prophet-like capabilities.
Built in Rust for maximum speed, with a familiar Python API.
Python 3.11+ Rust-powered
Why Farseer?
🚀
Blazing Fast
Rust-powered performance with automatic multithreading. Get forecasts in seconds, 5-10x faster than Prophet.
🎯
Accurate & Robust
Bayesian approach with uncertainty intervals. Handles missing data, outliers, and trend shifts automatically.
⚖️
Weighted Observations
Native support for observation weights. Emphasize recent data or downweight outliers with ease.
📊
Polars & Pandas
Works with both Polars (recommended, 5-10x faster) and Pandas DataFrames for backward compatibility.
🔧
Fully Tunable
Multiple trend types, custom seasonality, holiday effects, and regressors. Add your domain knowledge.
🔄
Prophet Compatible
Nearly identical API to Prophet. Migrate your existing code with minimal changes.
📅
Conditional Seasonality
Apply seasonal patterns only when conditions are met (e.g., weekday vs weekend patterns).
🎄
Flexible Holidays
Independent holiday priors with customizable scales. Different effects for different events.
📈
Smart Regressors
Auto-detects binary vs continuous regressors. Standardizes appropriately for optimal results.
📏
Floor & Cap
Logistic growth with both upper (cap) and lower (floor) bounds for saturating forecasts.
💾
Model Serialization
Save and load trained models as JSON for deployment and reproducibility.
⚡
Parallel Optimization
Automatically uses all CPU cores for faster model fitting. Scales with your hardware.
Farseer vs Prophet
| Performance | Rust-powered, 5-10x faster | Python/Stan |
| Multithreading | Automatic parallel optimization | Single-threaded by default |
| Weighted Data | Native support | Not directly supported |
| DataFrames | Polars + Pandas | Pandas only |
| Conditional Seasonality | Fully supported | Fully supported |
| Floor Parameter | Full support (logistic growth) | Full support |
| Regressor Standardization | Auto-detects binary/continuous | Manual configuration |
| Holiday Priors | Independent per-holiday scales | Independent per-holiday scales |
| Deployment | Minimal dependencies | Requires Stan, PyStan |
| API | Scikit-learn-like, Prophet-compatible | Scikit-learn-like |
Quick Start
Installation
Basic Usage (Polars - Recommended)
Prophet-Compatible (Pandas)
Examples
🎯 Weighted Observations
Give more importance to recent or reliable data
� Conditional Seasonality
Different patterns for different conditions
�📈 Custom Regressors
Add additional variables to improve forecasts
� Floor & Cap
Saturating growth with upper and lower bounds
�🔄 Manual Changepoints
Specify known trend changes in your data
🎄 Holiday Effects
Model special events with independent priors
Ready to get started?
Start forecasting with the speed and reliability of Rust
.png)


