mirror of
https://github.com/webclinic017/drift.git
synced 2026-07-27 18:57:55 +00:00
feat(Reporting): added robustness / correlation test (#138)
* feat(Evaluation): added robustness/correlation test * feat(Reporting): saving correlations * fix(Reporting): record correlations properly * fix(Model): SVC's random seed * feat(CI): store artifacts
This commit is contained in:
committed by
GitHub
parent
b1c04afb13
commit
f5bbc266a4
@@ -17,6 +17,11 @@ def get_first_valid_return_index(series: pd.Series) -> int:
|
||||
return 0
|
||||
return nested_result[0]
|
||||
|
||||
def has_enough_samples_to_train(X: pd.DataFrame, y: pd.Series, training_config: dict) -> bool:
|
||||
first_valid_index = get_first_valid_return_index(X.iloc[:,0])
|
||||
samples_to_train = len(y) - first_valid_index
|
||||
return samples_to_train > training_config['sliding_window_size_primary'] + training_config['sliding_window_size_meta_labeling'] + 100
|
||||
|
||||
def flatten(list_of_lists: list) -> list:
|
||||
return [item for sublist in list_of_lists for item in sublist]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user