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

Scikit Learn warning for Logistic Regression #7028

Closed
gbartoli-zcs opened this issue Feb 14, 2025 · 3 comments
Closed

Scikit Learn warning for Logistic Regression #7028

gbartoli-zcs opened this issue Feb 14, 2025 · 3 comments
Labels
bug report Bug is reported by user, not yet confirmed by the core team

Comments

@gbartoli-zcs
Copy link

What's wrong?
When using a Logistic Regression classifier with a simple dataset (built-in "Zoo" in this case) in a "Test and Score" widget, the following warnings about "multi_class" option are displayed:

❯ python -m Orange.canvas
/home/bartoli/miniconda3/envs/orange3/lib/python3.10/site-packages/orangewidget/gui.py:2073: UserWarning: decorate
OWLogisticRegression.apply with @gui.deferred and then explicitly call apply.now or apply.deferred.
  warnings.warn(
/home/bartoli/miniconda3/envs/orange3/lib/python3.10/site-packages/sklearn/linear_model/_logistic.py:1247: FutureWarning:
'multi_class' was deprecated in version 1.5 and will be removed in 1.7. From then on, it will always use 'multinomial'.
Leave it to its default value to avoid this warning.

This is the workflow I'm using:
Image

How can we reproduce the problem?
warning.ows.zip

What's your environment?

  • Operating system: Linux Mint 22.1
  • Orange version: 3.38.1
  • How you installed Orange: Conda package
@gbartoli-zcs gbartoli-zcs added the bug report Bug is reported by user, not yet confirmed by the core team label Feb 14, 2025
@markotoplak
Copy link
Member

Thanks for reporting, this was very likely fixed in the master branch (see #6956).

@gbartoli-zcs
Copy link
Author

Thanks for reporting, this was very likely fixed in the master branch (see #6956).

Can the master branch be installed in Conda? Following the standard installation, the same 3.38.1 version containing this warning is installed.

Thanks

@markotoplak
Copy link
Member

For the master branch you'd have to clone the repository and install it as developer do. See the developing section on https://github.com/biolab/orange3.

But I think the best would be to just ignore the warning for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug is reported by user, not yet confirmed by the core team
Projects
None yet
Development

No branches or pull requests

2 participants