--- title: "Forecast" description: "Advanced zero-shot forecasting capabilities for time series data" icon: "chart-line" --- TimeGPT offers advanced zero-shot forecasting capabilities for a wide range of time series domains, thanks to its large-scale and diverse pretraining. This section provides an overview of forecasting features available in TimeGPT. You can leverage TimeGPT for: - Zero-shot forecasting - Forecasting with exogenous variables - Manipulating holidays and special dates - Incorporating categorical variables - Long-horizon forecasting - Forecasting multiple series - Fine-tuning TimeGPT - Working with specific loss functions - Cross-validation - Adding prediction intervals - Handling irregular timestamps These capabilities allow teams to handle real-world scenarios across different industries and problem domains. TimeGPT is a powerful choice when you need: - Rapid iteration without explicit training on your own datasets. - A flexible model that generalizes well across different time series scenarios. - Support for additional context or features like holidays, external events, or categorical data. Zero-shot forecasting lets you generate predictions without having to train a new model from scratch on your data. This can significantly reduce your time to production for new or changing forecasting tasks. Gain performance boosts by fine-tuning TimeGPT on your own dataset or by leveraging specific loss functions. This approach helps tailor the model to your unique forecasting requirements. By combining zero-shot approaches with optional fine-tuning, TimeGPT offers a robust and efficient solution for time series forecasting. Zero-shot forecasting is an excellent starting point for quick insights. For detailed instructions, see: [Zero-shot forecasting documentation](https://docs.nixtla.io/docs/capabilities-forecast-quickstart). If you have additional external drivers or explanatory factors, include them to improve predictions. For more details, visit: [Forecasting with exogenous variables](https://docs.nixtla.io/docs/capabilities-forecast-add_exogenous_variables). Holidays and special dates can have significant impact on time series signals. Learn how to handle them here: [Forecasting with holidays and special dates](https://docs.nixtla.io/docs/capabilities-forecast-add_holidays_and_special_dates). Explore how to add categorical information and improve your forecasts: [Forecasting with categorical variables](https://docs.nixtla.io/docs/capabilities-forecast-add_categorical_variables). Learn best practices for forecasting extended time periods well into the future: [Long-horizon forecasting](https://docs.nixtla.io/docs/capabilities-forecast-long_horizon_forecasting). Handle multiple time series simultaneously to build scalable and efficient solutions: [Forecasting multiple series](https://docs.nixtla.io/docs/capabilities-forecast-multiple_series_forecasting). Adapt TimeGPT to your specific domain or data distribution: [Fine-tuning TimeGPT](https://docs.nixtla.io/docs/capabilities-forecast-fine_tuning). Go beyond default metrics by defining custom loss functions: [Fine-tuning with a specific loss function](https://docs.nixtla.io/docs/capabilities-forecast-finetuning_with_a_custom_loss_function). Ensure robust forecasting performance through cross-validation: [Cross-validation](https://docs.nixtla.io/docs/capabilities-forecast-cross_validation). Build prediction intervals to quantify uncertainty in your forecasts: [Adding prediction intervals](https://docs.nixtla.io/docs/capabilities-forecast-predictions_intervals). Discover approaches to deal with missing or irregular time steps: [Handling irregular timestamps](https://docs.nixtla.io/docs/capabilities-forecast-irregular_timestamps). Below is a concise code snippet to get started with zero-shot forecasting. This example demonstrates how to import TimeGPT and make a simple prediction. ```python Zero-Shot Forecasting Example # Example: Zero-shot forecasting with TimeGPT from timegpt import TimeGPT # Initialize TimeGPT gpt_model = TimeGPT() # Sample time series data (replace with your own) time_series_data = [10, 12, 13, 12, 15, 18, 20] # Make a forecast forecast = gpt_model.forecast(time_series_data, horizon=3) print("Forecast:", forecast) ``` Congratulations\! You are now equipped with TimeGPT's key forecasting features. Explore the linked guides for detailed instructions on advanced topics.