Skip to content
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

Fix issue with min_samp becoming of float type #6

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

godsic
Copy link
Contributor

@godsic godsic commented Nov 13, 2022

It turns out round(x, 0) might return value of float type leading to TypeError: min_samples must be an instance of int, not float.. Let's take care of that and also guard user input for minimum of 3 samples. Thanks to @jhonnybonny for reporting.

It turns out `round(x, 0)` might return value of `float` type leading to
`TypeError: min_samples must be an instance of int, not float.`. Let's
take care of that and also guard user input for minimum of 3 samples.
@ckoval7 ckoval7 merged commit fe086c4 into ckoval7:master Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants