mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-06 07:37:49 +00:00
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:
committed by
GitHub
parent
0395715fa1
commit
5482e3fc95
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user