Skip to content

feat(DjangoTemplate): J'ai créé un projet django sous src/energy_forc… #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,4 @@ data/silver/weather_forecasts/*.nc
data/geo/*.nc
.vscode/settings.json
data/bronze/observations/*.csv.gz
src/energy_forecast_django/staticfiles/
134 changes: 85 additions & 49 deletions data/gold/our_tempo_prediction.csv
Original file line number Diff line number Diff line change
@@ -1,49 +1,85 @@
,Type_de_jour_TEMPO,our_tempo_J-1,our_tempo_J-2,our_tempo_J-3
2024-09-01,BLUE,prediction_bleu,,
2024-09-02,BLUE,prediction_bleu,,
2024-09-03,BLUE,prediction_bleu,,
2024-09-04,BLUE,prediction_bleu,,
2024-09-05,BLUE,prediction_bleu,,
2024-09-06,BLUE,prediction_bleu,,
2024-09-07,BLUE,prediction_bleu,,
2024-09-08,BLUE,prediction_bleu,,
2024-09-09,BLUE,prediction_bleu,,
2024-09-10,BLUE,prediction_bleu,,
2024-09-11,BLUE,prediction_bleu,,
2024-09-12,BLUE,prediction_bleu,,
2024-09-13,BLUE,prediction_bleu,,
2024-09-14,BLUE,prediction_bleu,,
2024-09-15,BLUE,prediction_bleu,,
2024-09-16,BLUE,prediction_bleu,,
2024-09-17,BLUE,prediction_bleu,,
2024-09-18,BLUE,prediction_bleu,,
2024-09-19,BLUE,prediction_bleu,,
2024-09-20,BLUE,prediction_bleu,,
2024-09-21,BLUE,prediction_bleu,,
2024-09-22,BLUE,prediction_bleu,,
2024-09-23,BLUE,prediction_bleu,,
2024-09-24,BLUE,prediction_bleu,,
2024-09-25,BLUE,prediction_bleu,,
2024-09-26,BLUE,prediction_bleu,,
2024-09-27,BLUE,prediction_bleu,,
2024-09-28,BLUE,prediction_bleu,,
2024-09-29,BLUE,prediction_bleu,,
2024-09-30,BLUE,prediction_bleu,,
2024-10-01,BLUE,prediction_bleu,,
2024-10-02,BLUE,prediction_bleu,,
2024-10-03,BLUE,prediction_bleu,,
2024-10-04,BLUE,prediction_bleu,,
2024-10-05,BLUE,prediction_bleu,,
2024-10-06,BLUE,prediction_bleu,,
2024-10-07,BLUE,prediction_bleu,,
2024-10-08,BLUE,prediction_bleu,,
2024-10-09,BLUE,prediction_bleu,prediction_bleu,prediction_bleu
2024-10-10,BLUE,prediction_bleu,prediction_bleu,prediction_bleu
2024-10-11,BLUE,prediction_bleu,prediction_bleu,prediction_bleu
2024-10-12,BLUE,prediction_bleu,prediction_bleu,prediction_bleu
2024-10-13,BLUE,prediction_bleu,prediction_bleu,prediction_bleu
2024-10-14,BLUE,prediction_bleu,,
2024-10-15,BLUE,prediction_bleu,,
2024-10-16,BLUE,prediction_bleu,prediction_bleu,
2024-10-17,,,prediction_bleu,prediction_bleu
2024-10-18,,,,prediction_bleu
date,Type_de_jour_TEMPO,our_tempo_J-1,our_tempo_J-2,our_tempo_J-3
2024-09-01,BLUE,BLUE,,
2024-09-02,BLUE,BLUE,,
2024-09-03,BLUE,BLUE,,
2024-09-04,BLUE,BLUE,,
2024-09-05,BLUE,BLUE,,
2024-09-06,BLUE,BLUE,,
2024-09-07,BLUE,BLUE,,
2024-09-08,BLUE,BLUE,,
2024-09-09,BLUE,BLUE,,
2024-09-10,BLUE,BLUE,,
2024-09-11,BLUE,BLUE,,
2024-09-12,BLUE,BLUE,,
2024-09-13,BLUE,BLUE,,
2024-09-14,BLUE,BLUE,,
2024-09-15,BLUE,BLUE,,
2024-09-16,BLUE,BLUE,,
2024-09-17,BLUE,BLUE,,
2024-09-18,BLUE,BLUE,,
2024-09-19,BLUE,BLUE,,
2024-09-20,BLUE,BLUE,,
2024-09-21,BLUE,BLUE,,
2024-09-22,BLUE,BLUE,,
2024-09-23,BLUE,BLUE,,
2024-09-24,BLUE,BLUE,,
2024-09-25,BLUE,BLUE,,
2024-09-26,BLUE,BLUE,,
2024-09-27,BLUE,BLUE,,
2024-09-28,BLUE,BLUE,,
2024-09-29,BLUE,BLUE,,
2024-09-30,BLUE,BLUE,,
2024-10-01,BLUE,BLUE,,
2024-10-02,BLUE,BLUE,,
2024-10-03,BLUE,BLUE,,
2024-10-04,BLUE,BLUE,,
2024-10-05,BLUE,BLUE,,
2024-10-06,BLUE,BLUE,,
2024-10-07,BLUE,BLUE,,
2024-10-08,BLUE,BLUE,,
2024-10-09,BLUE,BLUE,BLUE,BLUE
2024-10-10,BLUE,BLUE,BLUE,BLUE
2024-10-11,BLUE,BLUE,BLUE,BLUE
2024-10-12,BLUE,BLUE,BLUE,BLUE
2024-10-13,BLUE,BLUE,BLUE,BLUE
2024-10-14,BLUE,BLUE,,
2024-10-15,BLUE,BLUE,,
2024-10-16,BLUE,BLUE,BLUE,
2024-10-17,BLUE,BLUE,BLUE,BLUE
2024-10-18,BLUE,BLUE,,BLUE
2024-10-19,BLUE,BLUE,,
2024-10-20,BLUE,BLUE,,
2024-10-21,BLUE,BLUE,,
2024-10-22,BLUE,BLUE,,
2024-10-23,BLUE,BLUE,,
2024-10-24,BLUE,BLUE,,
2024-10-25,BLUE,BLUE,,
2024-10-26,BLUE,BLUE,,
2024-10-27,BLUE,BLUE,,
2024-10-28,BLUE,BLUE,,
2024-10-29,BLUE,BLUE,,
2024-10-30,BLUE,BLUE,,
2024-10-31,BLUE,BLUE,,
2024-11-01,BLUE,BLUE,,
2024-11-02,BLUE,BLUE,,
2024-11-03,BLUE,BLUE,,
2024-11-04,BLUE,BLUE,,
2024-11-05,BLUE,BLUE,,
2024-11-06,BLUE,BLUE,,
2024-11-07,BLUE,BLUE,,
2024-11-08,BLUE,BLUE,,
2024-11-09,BLUE,BLUE,,
2024-11-10,BLUE,BLUE,,
2024-11-11,BLUE,BLUE,,
2024-11-12,BLUE,BLUE,,
2024-11-13,BLUE,WHITE,,
2024-11-14,WHITE,WHITE,,
2024-11-15,WHITE,WHITE,,
2024-11-16,BLUE,BLUE,,
2024-11-17,BLUE,BLUE,,
2024-11-18,BLUE,BLUE,,
2024-11-19,BLUE,BLUE,,
2024-11-20,WHITE,WHITE,,
2024-11-21,WHITE,WHITE,,
2024-11-22,,,WHITE,
2024-11-23,,,,BLUE
80 changes: 40 additions & 40 deletions notebooks/datascience/tempo_predictor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1709,9 +1709,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -1744,7 +1744,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 40 0 3\n",
"BLEU 4 297 0\n",
Expand Down Expand Up @@ -1798,9 +1798,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -1833,7 +1833,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 17 1 25\n",
"BLEU 10 287 3\n",
Expand Down Expand Up @@ -1889,9 +1889,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -1924,7 +1924,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 24 2 17\n",
"BLEU 16 282 2\n",
Expand Down Expand Up @@ -1980,9 +1980,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -2015,7 +2015,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 30 0 13\n",
"BLEU 8 292 0\n",
Expand Down Expand Up @@ -2071,9 +2071,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -2106,7 +2106,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 28 9 10\n",
"BLEU 8 292 1\n",
Expand Down Expand Up @@ -2162,9 +2162,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -2197,7 +2197,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 37 1 5\n",
"BLEU 7 293 0\n",
Expand Down Expand Up @@ -2253,9 +2253,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -2288,7 +2288,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 32 1 9\n",
"BLEU 84 217 0\n",
Expand Down Expand Up @@ -2344,9 +2344,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -2379,7 +2379,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 31 2 10\n",
"BLEU 5 295 0\n",
Expand Down Expand Up @@ -2435,9 +2435,9 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th>col_0</th>\n",
" <th>prediction_blanc</th>\n",
" <th>prediction_bleu</th>\n",
" <th>prediction_rouge</th>\n",
" <th>WHITE</th>\n",
" <th>BLUE</th>\n",
" <th>RED</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Type_de_jour_TEMPO</th>\n",
Expand Down Expand Up @@ -2470,7 +2470,7 @@
"</div>"
],
"text/plain": [
"col_0 prediction_blanc prediction_bleu prediction_rouge\n",
"col_0 WHITE BLUE RED\n",
"Type_de_jour_TEMPO \n",
"BLANC 29 2 4\n",
"BLEU 7 157 0\n",
Expand Down Expand Up @@ -2616,10 +2616,10 @@
],
"source": [
"predictions = predictor.predict()\n",
"predictions[\"prediction_rouge\"].astype(int).plot(\n",
"predictions[\"RED\"].astype(int).plot(\n",
" ax=ax, style=\"-\", color=\"red\", drawstyle=\"steps-post\"\n",
")\n",
"predictions[\"prediction_blanc\"].astype(int).plot(\n",
"predictions[\"WHITE\"].astype(int).plot(\n",
" ax=ax, style=\"-\", color=\"orange\", drawstyle=\"steps-post\"\n",
")\n",
"\n",
Expand All @@ -2630,7 +2630,7 @@
"xs = np.arange(ax.dataLim.min[0], ax.dataLim.max[0] + 1, 1)\n",
"ax.fill_between(\n",
" xs,\n",
" predictions[\"prediction_rouge\"].values * 2,\n",
" predictions[\"RED\"].values * 2,\n",
" step=\"post\",\n",
" color=\"red\",\n",
" alpha=0.5,\n",
Expand All @@ -2639,7 +2639,7 @@
"# predictor.categories[\"ROUGE\"].plot(ax=ax, style=\"-\", color=\"red\", drawstyle=\"steps-post\")\n",
"ax.fill_between(\n",
" xs,\n",
" predictions[\"prediction_blanc\"].values * 2,\n",
" predictions[\"WHITE\"].values * 2,\n",
" step=\"post\",\n",
" color=\"orange\",\n",
" alpha=0.5,\n",
Expand Down
Loading