mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
* LOG : add app_name=gst_packaged_pypi * LOG : update piis filtering * Linting * Log : generation * Tests : log generation * Linting * Tests : piis filtering Co-authored-by: James Maslek <jmaslek11@gmail.com>
90 lines
2.0 KiB
Plaintext
Vendored
90 lines
2.0 KiB
Plaintext
Vendored
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "a3abc620-1a2c-4c6d-a273-b30ce74a58c9",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"from datetime import datetime, timedelta\n",
|
|
"from openbb_terminal import api\n",
|
|
"import os\n",
|
|
"\n",
|
|
"import matplotlib.pyplot as plt\n",
|
|
"import matplotlib_inline.backend_inline\n",
|
|
"import ipywidgets as widgets\n",
|
|
"import plotly.graph_objs as go\n",
|
|
"from IPython.display import display\n",
|
|
"\n",
|
|
"%matplotlib inline\n",
|
|
"matplotlib_inline.backend_inline.set_matplotlib_formats(\"svg\")\n",
|
|
"api.theme.applyMPLstyle()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "2bad2400-6f8a-4a8a-8161-5e319ae13ba8",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"df = api.forecast.load(\"weather.csv\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "5eb728df-76e3-4cf2-901b-7275b7ce8f4c",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"df = api.forecast.ema(df, target_column=\"MaxTemp\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "261d1eb2-7a0b-4358-8aa5-c1bae1237dab",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"api.forecast.expo(df, target_column=\"MaxTemp\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "0c1d1945-f819-442a-a8e6-66822681b901",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"api.forecast.brnn(\n",
|
|
" df, target_column=\"MaxTemp\", past_covariates=\"MinTemp,Rainfall,Evaporation\"\n",
|
|
")"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3 (ipykernel)",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.9.13"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 5
|
|
}
|