2
I have the following situation
from sklearn.linear_model import LogisticRegression
import pandas as pd
x = pd.DataFrame({'A':[1,3,8,6,1],'B':[2,6,9,3,2]})
y = pd.DataFrame({'C':[8,6,3,6,1]})
How do I make it happen?
LogisticRegression( ).fit(x, y)
I have the following answer:
ValueError: Unknown label type: array([8,6,3,6,1]) #valores do y
Which way is right??
I don’t know much about python, but logistic regression is used p/ classification. So I would guess that y in your case should not be of the numerical type...
– Daniel Falbel
Nooosa... I thought sklearn would do the same as excel Proj.log (logest).
– Mueladavc