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

get all inf? #6

Open
danFromTelAviv opened this issue Aug 28, 2019 · 5 comments
Open

get all inf? #6

danFromTelAviv opened this issue Aug 28, 2019 · 5 comments

Comments

@danFromTelAviv
Copy link

ExtraTreesClassifier

Model accuracy Time/clf (s)


SGDClassifier -inf inf
LogisticRegression -inf inf
Perceptron -inf inf
PassiveAggressiveClassifier -inf inf
MLPClassifier -inf inf
KMeans -inf inf
KNeighborsClassifier -inf inf
NearestCentroid -inf inf
RadiusNeighborsClassifier -inf inf
SVC -inf inf
NuSVC -inf inf
LinearSVC -inf inf
RandomForestClassifier -inf inf
DecisionTreeClassifier -inf inf
ExtraTreesClassifier -inf inf

The winner is: SGDClassifier with score -inf.

I used the same data with just RandomForestClassifier and got a [bad but] working classifier...

@licensedtroubleshooter
Copy link

I have had the same issue here.
Most likely, the problem is that you are passing two or more dimensional array as y parameter into your classifier.

@acousticsmh
Copy link

============================================================
Model accuracy Time/clf (s)


KMeans 0.743 0.154
KNeighborsClassifier -inf inf
NearestCentroid 0.859 0.002
RadiusNeighborsClassifier -inf inf
RandomForestClassifier -inf inf
DecisionTreeClassifier -inf inf
ExtraTreesClassifier -inf inf

The winner is: NearestCentroid with score 0.859.

Some models are working fine where as others are giving -inf

@raghavgupta84
Copy link

I am also getting the same problem of infinity.

Is there a solution for this ?

@LilacPeregrine
Copy link

I had the same thing occur, but my Y parameter was only one dimensional
X.shape = (801, 8)
Y.shape = (801,)
X consists of floats from 0-24, and Y floats from 0-10.
transposing X and Y does not change this issue. (It only causes it to fail faster)

@keldeo0804
Copy link

Any update on this error ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants