Comments (8)
What's wrong?
InvalidParameterError: The 'degree' parameter of SVC must be an int in the range [0, inf). Got 2.5 instead.
How can we reproduce the problem?
Occurs when using SVM classification
What's your environment?
conda
Operating system:win10
Orange version:[Orange 3.37.0 for Windows]
How you installed Orange:Download and install from the official website
from orange3.
So what is the solution to this? I have the same problem...
from orange3.
I confirm the bug. My scikit-learn (for reference) is 1.3.2.
The problem is not only that the parameter can be 2.5 as in the original error report - scikit-learn complains as soon as it is a float, even if it is 2.0.
from orange3.
I confirm the bug. My scikit-learn (for reference) is 1.3.2.
The problem is not only that the parameter can be 2.5 as in the original error report - scikit-learn complains as soon as it is a float, even if it is 2.0.
Where is this degree parameter set?
I get: "The 'degree' parameter of SVC must be an int in the range [0, inf). Got 3.0 instead"
from orange3.
It is an internal parameter ("d") only relevant to the "Polynomial" kernel, but it seems to be always passed and that check about argument type complains even if it is not used.
It is a bug that has to be fixed in code.
from orange3.
It is an internal parameter ("d") only relevant to the "Polynomial" kernel, but it seems to be always passed and that check about argument type complains even if it is not used.
It is a bug that has to be fixed in code.
I see. It did not make sense in the linear SVM as it is the degree of the polynomial in the polynomial kernel... But still I get it in the linear SVM node...
from orange3.
While fixing this bug I found a workaround for other types of SVMs. If you are using non-polynomial SVM (or polynomial with a default degree of 3), reset widget settings (Options -> Reset Widget Settings and then start a new workflow). The SVM widget will work correctly until you change the degree.
from orange3.
While fixing this bug I found a workaround for other types of SVMs. If you are using non-polynomial SVM (or polynomial with a default degree of 3), reset widget settings (Options -> Reset Widget Settings and then start a new workflow). The SVM widget will work correctly until you change the degree.
Does not work for me. Still I cannot train any SVM models despite the fact that the problem is with the SVM-Polynomial.
from orange3.
Related Issues (20)
- FreeViz: wrong direction of arrows HOT 1
- K-Means widget hangs (intermittent, multiple number of clusters) HOT 2
- Unlimit xgboost version HOT 2
- Path processing in the Formula widget
- Edit Domain: no way to get rid of warning "categories mapping for [variable] does not apply to current input" after change in upstream Formula
- Box Plot: add attribute name to the plot HOT 1
- Hierarchical Clustering: add legend for Color-by variable
- SVM's not working... a bug with the polynomial degree HOT 1
- First class Vector/Tensor Datatype
- SVM and/or Preprocess with sparse data (BoW): no way to get rid of warning "Input data is sparse, default preprocessing is to scale it" HOT 1
- Flow Zone/Containers for documentation/organization
- Misleading ARIMA forecast description HOT 2
- Meaningful X-axis Coordinates in Time Series Line Charts HOT 2
- Moving Transform - Aggregation
- Discretize: rounding problem HOT 1
- Continuize: multiple attributes with the same name HOT 1
- Python Script: example in widget help page causes warning
- TypeError: can't compare offset-naive and offset-aware datetimes
- Switch the language of orange3 interface to Chinese. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orange3.