feat(Config): added start_date property (#245)

* refactor(Training): remove non-expanding window option

* feat(Config): added `start_date` property

* fix(Inference): added start_date here as well

* fix(Linter): ran
This commit is contained in:
Mark Aron Szulyovszky
2022-03-15 17:48:43 +01:00
committed by GitHub
parent 0395715fa1
commit 5482e3fc95
7 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -18,4 +18,4 @@ def check_data(X: XDataFrame, config: Config) -> bool:
def has_enough_samples_to_train(X: XDataFrame, config: Config) -> bool:
first_valid_index = get_first_valid_return_index(X.iloc[:, 0])
samples_to_train = len(X) - first_valid_index
return samples_to_train > (config.initial_window_size * 2) + 100
return samples_to_train > config.retrain_every * 3 + config.initial_window_size