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.

[BUG] Deprecation warning in AutoGMM

See original GitHub issue

Expected Behavior

No warning

Actual Behavior

Deprecation warning in AutoGMM

Example Code

from graspologic.cluster import AutoGMM

Full Traceback

FutureWarning: The sklearn.utils.testing module is deprecated in version 0.22 and will be removed in version 0.24. 
The corresponding classes / functions should instead be imported from sklearn.utils. 
Anything that cannot be imported from sklearn.utils is now part of the private API.

Solution

Caused by https://github.com/microsoft/graspologic/blob/8d7d29f0e569de4b1969d3b1aed8d47168aa6a96/graspologic/cluster/autogmm.py#L14

Just need to replace that decorator with a simple

with warnings.simplefilter('ignore', ConvergenceWarning):

(I think)

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
darkyedcommented, Dec 24, 2020

Hi @bdpedigo ! I’m new to open source and I would like to work on this issue.

1reaction
jovocommented, Dec 29, 2020

welcome @darkyed, happy to be working together!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] pyximport raises a DeprecationWarning with setuptools ...
Describe the bug On my Ubuntu 22.04.1 LTS system, using pyximport produces the deprecation warning: DeprecationWarning: Absolute path '/XXX' ...
Read more >
2034555 – Deprecation Warning for all openstack cli command
It comes from Ansible and is used by python-tripleoclient. Specifically: ansible/parsing/yaml/loader.py: from _yaml import CParser, CEmitter Seems to ...
Read more >
Automatic Gaussian Mixture Modeling - Microsoft Open Source
The Automatic Gaussian Mixture Model (AutoGMM) is a wrapper of Sklearn's Gaussian ... `affinity` was deprecated in version 1.2 and will be removed...
Read more >
Deprecation Warning - python - Stack Overflow
After importing the above files I got a module not found error because I didn't had xboost installed since i'm new to python...
Read more >
Logs filled with unnecessary policy deprecation warnings
The reason we emit these warnings is that while the policies are deprecated, the old rules and the new rules are OR'd together,...
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