question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecation warnings from sklearn

See original GitHub issue

Using Docker image, on running benchmark I get:

miniconda/lib/python2.7/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: T
his module was deprecated in version 0.18 in favor of the model_selection module into which 
all the refactored classes and functions are moved. Also note that the interface of the new 
CV iterators are different from that of this module. This module will be removed in 0.20.
  "This module will be removed in 0.20.", DeprecationWarning)
/miniconda/lib/python2.7/site-packages/sklearn/grid_search.py:43: DeprecationWarning: This m
odule was deprecated in version 0.18 in favor of the model_selection module into which all t
he refactored classes and functions are moved. This module will be removed in 0.20.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lilleswingcommented, Feb 22, 2018

Closing as we have not seen the warning recently and we can no longer find the cross_validation import.

0reactions
lilleswingcommented, Jul 5, 2017

@mwojcikowski is this fixed now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Eliminating warnings from scikit-learn - python - Stack Overflow
It annoys me to the extreme that sklearn forces warnings. I started using this at the top of main.py: def warn(*args, **kwargs): pass...
Read more >
Python warnings system - Scikit-beam
If you wish to squelch deprecation warnings, you can start Python with -Wi::Deprecation . This sets all deprecation warnings to ignored. There is...
Read more >
sklearn.utils.deprecated — scikit-learn 1.2.0 documentation
Decorator to mark a function or class as deprecated. Issue a warning when the function is called/the class is instantiated and adds a...
Read more >
How to Fix FutureWarning Messages in scikit-learn
FutureWarning: 'normalize' was deprecated in version 1.0 and will be removed in 1.2. Please leave the normalize parameter to its default value ...
Read more >
Deprecation warning with scipy=1.9.0 · Issue #24080 - GitHub
Describe the bug When running a fit with a Ride regression model we get: DeprecationWarning: The 'sym_pos' keyword is deprecated and should ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found