[issue #5089] Fixed warnings for DataDimensionalityWarning, decision_function and decision_function_shape.#5277
[issue #5089] Fixed warnings for DataDimensionalityWarning, decision_function and decision_function_shape.#5277hasancansaral wants to merge 1 commit intoscikit-learn:masterfrom hasancansaral:deprecation-warnings
Conversation
sklearn/svm/tests/test_sparse.py
Outdated
There was a problem hiding this comment.
the warning is silenced, but the test will fail in 0.18, when default decision_function_shape will change to 'ovr'.
I would rather add now decision_function_shape='ovo'.
|
@TomDLT Done. |
sklearn/svm/tests/test_sparse.py
Outdated
There was a problem hiding this comment.
please also add a new line for pep8 compliance.
…ecision_function_shape.
|
@TomDLT Done, thanks. |
The remaining |
|
@TomDLT Yes, I have found it. The issue said removing warnings from the test suit, so I didn't touch to doctests. |
|
You could change the parameters or the data so that there is no warning? |
|
@hasancansaral I am working on the #5297, if you are busy and don't mind, can I use some of your changes ? I am working on the |
|
merged via #5395 |
@amueller [issue #5089] Fixed warnings for DataDimensionalityWarning, decision_function and decision_function_shape.