milesgranger / gap_statistic

Dynamically get the suggested clusters in the data for unsupervised learning.
The Unlicense
217 stars 46 forks source link

Update Example.ipynb to support scikit-learn 0.24 #51

Closed alinaselega closed 3 years ago

alinaselega commented 3 years ago

I hit an error in the import statement when running the notebook with scikit-learn 0.24.1 so added this try statement to fix that.

alinaselega commented 3 years ago

Looks like the same error in tests/test_optimalK.py but I am not set up to run the tests locally so I won't try and fix this without checking.

milesgranger commented 3 years ago

Hi! Thanks for the PR, just a note I'm not ignoring it, just haven't had the time yet. Hopefully this week! :+1:

milesgranger commented 3 years ago

Thanks again! :+1: