-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from prio-data/integrate_new_vtl
integrated new views_tensor utils and implemented drift self-test
- Loading branch information
Showing
6 changed files
with
542 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "viewser" | ||
version = "6.5.3" | ||
version = "6.6.0" | ||
description = "The Views 3 CLI tool" | ||
authors = ["peder2911 <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -28,7 +28,7 @@ strconv = "^0.4.2" | |
pyarrow = ">9.0.0" | ||
views-storage = "^1.1.0" | ||
tqdm = "^4.66.0" | ||
views_tensor_utilities = "<1.0.0" | ||
views_tensor_utilities = ">=1.0.0" | ||
pyod = "<1.1.0" | ||
|
||
[tool.poetry.scripts] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,76 @@ | ||
import numpy as np | ||
from . import integrity_checks as ic | ||
|
||
default_dne = -np.inf | ||
default_missing = np.nan | ||
|
||
|
||
default_config_dict = { | ||
|
||
'global_missingness': {'threshold': 0.05, | ||
'test_function': ic.get_global_nan_fracs, | ||
'message': 'dataset missingness'}, | ||
'test_function': 'global_nan_fracs', | ||
'message': 'dataset missingness', | ||
'self_test': 0.10}, | ||
|
||
'global_zeros': {'threshold': 0.95, | ||
'test_function': ic.get_global_zero_fracs, | ||
'message': 'dataset zero'}, | ||
'global_zeros': {'threshold': 0.75, | ||
'test_function': 'global_zero_fracs', | ||
'message': 'dataset zero', | ||
'self_test': 0.999}, | ||
|
||
'time_missingness': {'threshold': 0.01, | ||
'test_function': ic.get_time_nan_fracs, | ||
'message': 'time-unit missingness'}, | ||
'test_function': 'time_nan_fracs', | ||
'message': 'time-unit missingness', | ||
'self_test': 0.02}, | ||
|
||
'space_missingness': {'threshold': 0.03, | ||
'test_function': ic.get_space_nan_fracs, | ||
'message': 'space-unit missingness'}, | ||
'test_function': 'space_nan_fracs', | ||
'message': 'space-unit missingness', | ||
'self_test': 0.06}, | ||
|
||
'feature_missingness': {'threshold': 0.01, | ||
'test_function': ic.get_feature_nan_fracs, | ||
'message': 'feature missingness'}, | ||
'test_function': 'feature_nan_fracs', | ||
'message': 'feature missingness', | ||
'self_test': 0.02}, | ||
|
||
'time_zeros': {'threshold': 0.95, | ||
'test_function': ic.get_time_zero_fracs, | ||
'message': 'time-unit zero'}, | ||
'time_zeros': {'threshold': 0.75, | ||
'test_function': 'time_zero_fracs', | ||
'message': 'time-unit zero', | ||
'self_test': 0.9999}, | ||
|
||
'space_zeros': {'threshold': 0.95, | ||
'test_function': ic.get_space_zero_fracs, | ||
'message': 'space-unit zero'}, | ||
'test_function': 'space_zero_fracs', | ||
'message': 'space-unit zero', | ||
'self_test': 0.99}, | ||
|
||
'feature_zeros': {'threshold': 0.95, | ||
'test_function': ic.get_feature_zero_fracs, | ||
'message': 'feature zero'}, | ||
'feature_zeros': {'threshold': 0.75, | ||
'test_function': 'feature_zero_fracs', | ||
'message': 'feature zero', | ||
'self_test': 0.9999}, | ||
|
||
'delta_completeness': {'threshold': 1.25, | ||
'test_function': ic.get_delta_completeness, | ||
'message': 'feature delta_completeness'}, | ||
'delta_completeness': {'threshold': 1.01, | ||
'test_function': 'delta_completeness', | ||
'message': 'feature delta_completeness', | ||
'self_test': 0.99}, | ||
|
||
'delta_zeroes': {'threshold': 1.25, | ||
'test_function': ic.get_delta_zeroes, | ||
'message': 'feature delta_zeroes'}, | ||
'delta_zeroes': {'threshold': 1.01, | ||
'test_function': 'delta_zeroes', | ||
'message': 'feature delta_zeroes', | ||
'self_test': 0.99}, | ||
|
||
'extreme_values': {'threshold': 4.0, | ||
'test_function': ic.get_extreme_values, | ||
'message': 'feature extreme values'}, | ||
'test_function': 'extreme_values', | ||
'message': 'feature extreme values', | ||
'self_test': 8.0}, | ||
|
||
'ks_drift': {'threshold': 100., | ||
'test_function': ic.get_ks_drift, | ||
'message': 'feature KS drift'}, | ||
'test_function': 'ks_drift', | ||
'message': 'feature KS drift', | ||
'self_test': None}, | ||
|
||
'ecod_drift': {'threshold': 0.05, | ||
'test_function': ic.get_ecod_drift, | ||
'message': 'dataset ECOD drift'}, | ||
'test_function': 'ecod_drift', | ||
'message': 'dataset ECOD drift', | ||
'self_test': None}, | ||
|
||
'standard_partition_length': 10, | ||
'test_partition_length': 1 | ||
'test_partition_length': 1, | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.