From 8c5830f6771255c5a3d2928b15bd0e3695872e57 Mon Sep 17 00:00:00 2001 From: nprimo Date: Thu, 7 Mar 2024 14:40:47 +0000 Subject: [PATCH] chore: run prettier --- subjects/ai/sp500-strategies/README.md | 6 +++--- subjects/ai/sp500-strategies/audit/README.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/subjects/ai/sp500-strategies/README.md b/subjects/ai/sp500-strategies/README.md index 499a48174..849d550dc 100644 --- a/subjects/ai/sp500-strategies/README.md +++ b/subjects/ai/sp500-strategies/README.md @@ -53,11 +53,11 @@ We assume it is day `D`, and we want to take a position on the next n days. The ![alt text][blocking] -[blocking]: blocking_time_series_split.png 'Blocking Time Series split' +[blocking]: blocking_time_series_split.png "Blocking Time Series split" ![alt text][timeseries] -[timeseries]: Time_series_split.png 'Time Series split' +[timeseries]: Time_series_split.png "Time Series split" Once you'll have run the grid search on the cross validation (choose either Blocking or Time Series split), you'll select the best pipeline on the train set and save it as `selected_model.pkl` and `selected_model.txt` (pipeline hyperparameters). @@ -70,7 +70,7 @@ Once you'll have run the grid search on the cross validation (choose either Bloc ![alt text][barplot] -[barplot]: metric_plot.png 'Metric plot' +[barplot]: metric_plot.png "Metric plot" - The signal has to be generated with the chosen cross validation: train the model on the train set of the first fold, then predict on its validation set; train the model on the train set of the second fold, then predict on its validation set, etc ... Then, concatenate the predictions on the validation sets to build the machine learning signal. **The pipeline shouldn't be trained once and predict on all data points!** diff --git a/subjects/ai/sp500-strategies/audit/README.md b/subjects/ai/sp500-strategies/audit/README.md index bebec3f20..5ddee18ef 100644 --- a/subjects/ai/sp500-strategies/audit/README.md +++ b/subjects/ai/sp500-strategies/audit/README.md @@ -42,7 +42,7 @@ ![alt text][timeseries] -[timeseries]: ../Time_series_split.png 'Time Series split' +[timeseries]: ../Time_series_split.png "Time Series split" ##### Model Selection @@ -64,7 +64,7 @@ _Note that, this can be done also on the test set **IF** this hasn't helped to s ![alt text][barplot] -[barplot]: ../metric_plot.png 'Metric plot' +[barplot]: ../metric_plot.png "Metric plot" ##### Machine learning signal