Skip to content

Commit

Permalink
DOC: doc pass of 02-data-partitioning notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
loganthomas committed Jan 20, 2025
1 parent 99831fc commit 7691b75
Show file tree
Hide file tree
Showing 4 changed files with 1,720 additions and 1,711 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ graph TD
subgraph TrainingFlow [" "]
direction LR
D["2021 --- 2022"] -->|Predict| E["2023"]:::blue
D["2021 --- 2022 --- 2023 "]
F["X 2024"]:::red
end
B -- Training Flow --> D
subgraph CVTimeSeries
subgraph CVTimeSeries ["TimeSeries CV: Previous year predicts next year's K%"]
FoldTitle11["Fold1"]:::noBorder
FoldTitle22["Fold2"]:::noBorder
FoldTitle33["Fold3"]:::noBorder
Expand Down Expand Up @@ -85,7 +85,7 @@ graph TD
Fold66 ~~~ Fold99
end
subgraph CVClassic
subgraph CVClassic ["Classic CV: All years used to predict K%"]
FoldTitle1["Fold1"]:::noBorder
FoldTitle2["Fold2"]:::noBorder
FoldTitle3["Fold3"]:::noBorder
Expand Down Expand Up @@ -121,8 +121,8 @@ graph TD
Fold6 ~~~ Fold9
end
TrainingFlow ----> CVClassic
TrainingFlow ----> CVTimeSeries
TrainingFlow --> CVClassic
TrainingFlow --> CVTimeSeries
classDef red fill:#FFCCCC,stroke:#FF0000,stroke-width:2px;
classDef green fill:#CCFFCC,stroke:#00FF00,stroke-width:2px;
Expand All @@ -131,9 +131,8 @@ graph TD
classDef transparent fill:#FFFFFF,stroke:#FFFFFF,stroke-width:2px,opacity:0;
```

Inpsired by sklearn:
Inspired by scikit-learn:
- https://scikit-learn.org/stable/modules/cross_validation.html
- https://scikit-learn.org/1.5/_images/grid_search_cross_validation.png
- https://scikit-learn.org/1.5/modules/cross_validation.html#time-series-split

## Supplemental Data
Expand Down
Loading

0 comments on commit 7691b75

Please sign in to comment.