Skip to content

[MRG] Replaced float with int in examples#8040

Merged
lesteve merged 5 commits intoscikit-learn:masterfrom
dalmia:8017
Feb 3, 2017
Merged

[MRG] Replaced float with int in examples#8040
lesteve merged 5 commits intoscikit-learn:masterfrom
dalmia:8017

Conversation

@dalmia
Copy link
Copy Markdown
Contributor

@dalmia dalmia commented Dec 12, 2016

Reference Issue

Fixes #8017

What does this implement/fix? Explain your changes.

This replaces float with int in the examples to remove the VisibleDeprecationWarning encountered due to the indices being of a non-integer type.

Any other comments?

As mentioned in the issue thread, I wasn't able to replicate most of the warnings appearing on the build that was linked to. However, I encountered warnings in other examples that were not present in the build and hence, I chose to not modify them. Please give your suggestions in this regard.

Loading
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.

Examples use floats when they should use integers (numpy deprecation)

6 participants