New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nb/tabular/increase speed outlier detection + timeout #1414
Nb/tabular/increase speed outlier detection + timeout #1414
Conversation
deepchecks/tabular/checks/integrity/outlier_sample_detection.py
Outdated
Show resolved
Hide resolved
deepchecks/tabular/checks/integrity/outlier_sample_detection.py
Outdated
Show resolved
Hide resolved
@@ -88,3 +57,26 @@ def test_mix_columns_full_matrix_with_nulls(): | |||
assert_that(dist[-1], has_length(data.shape[0])) | |||
assert_that(dist[3], has_item(greater_than(0.01))) | |||
assert_that(min(dist[0]), less_than_or_equal_to(0)) | |||
|
|||
|
|||
def test_mix_columns_nn_matrix_with_nulls_vectorized(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, are gowers dependencies OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dependencies were only added to dev-requirements so as far i understood are not downloaded with the package, am I correct? @matanper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep it's right, just making sure that the testing env will be functional.
docs/source/checks/tabular/integrity/plot_outlier_sample_detection.py
Outdated
Show resolved
Hide resolved
Re-add the check to the integrity suite. |
Already added |
…/Tabular/increase_speed_oulier_detection
…_detection' into NB/Tabular/increase_speed_oulier_detection
Major increase in running speed due to vectorization and other cool numpy tricks + Added a timeout mechanism.
It is still not that fast (7 sec for 10K samples with dimension 13).