Skip to content
Projets

À propos

Microsoft Finance Time Series Forecasting Framework (FinnTS) est un package de prévision qui s’appuie sur des méthodes avancées de prévision des séries temporelles et le traitement parallèle dans le cloud pour produire des prévisions précises à partir de données financières.

Gestion et finance

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Microsoft Finance Time Series Forecasting Framework

CRAN_Status_Badge

The Microsoft Finance Time Series Forecasting Framework, aka finnts or Finn, is an automated forecasting framework for producing financial forecasts. While it was built for corporate finance activities, it can easily expand to any time series forecasting problem!

  • Built in AI agent that can act as your own virtual data scientist, always optimizing for the most accurate forecast.
  • Automated feature engineering, feature selection, back testing, and model selection.
  • Access to 25+ models. Both univariate and multivariate models.
  • Azure integration to run thousands of time series in parallel within the cloud.
  • Supports daily, weekly, monthly, quarterly, and yearly forecasts.
  • Handles external regressors, either purely historical or historical+future values.

Use Finn with a coding agent

Don't want to write R code? The Finn skill lets a coding agent such as GitHub Copilot or Codex install R and finnts, run forecasts, and explain the results for you. Paste this into your agent:

Install the Finn skill from https://github.com/microsoft/finnts/tree/main/skills/finn and help me forecast my data.

Installation

CRAN version

install.packages("finnts")

Development version

To get a bug fix or to use a feature from the development version, you can install the development version of finnts from GitHub.

# install.packages("devtools")
devtools::install_github("microsoft/finnts")

Usage

library(finnts)

# prepare historical data
hist_data <- timetk::m4_monthly %>%
  dplyr::rename(Date = date) %>%
  dplyr::mutate(id = as.character(id))
  
# connect LLM
llm <- ellmer::chat_azure_openai(model = "gpt-4o-mini")

# set up new forecast project and agent run
project <- set_project_info(project_name = "Demo_Project", 
                            combo_variables = c("id"),
                            target_variable = "value",
                            date_type = "month")
                            
agent <- set_agent_info(project_info = project,
                        llm = llm,
                        input_data = hist_data,
                        forecast_horizon = 6)

# iterate forecast via agent
iterate_forecast(agent_info = agent,
                 max_iter = 3,
                 weighted_mape_goal = 0.03)

# load final forecast output
forecast_output <- get_agent_forecast(agent_info = agent)

# ask agent to explain the forecast results
eda_answer <- ask_agent(agent_info = agent,
                        question = "Summarize the exploratory data analysis, what stands out?")
                        
accuracy_answer <- ask_agent(agent_info = agent,
                             question = "What's the best model accuracy?")
                             
model_answer <- ask_agent(agent_info = agent,
                          question = "Explain why the best model was selected. How does that model work?")

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Explorer des projets similaires

Chargement…