You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using logisticRegression model for my project , my code is as folows,i don't know why every time after do it there is an error: "ValueError: setting an array element with a sequence."
I don't know why?
from sklearn.linear_model import LogisticRegression
I am using logisticRegression model for my project , my code is as
folows,i don't know why every time after do it there is an error:
"ValueError: setting an array element with a sequence."
I don't know why?
from sklearn.linear_model import LogisticRegression
I am using logisticRegression model for my project , my code is as folows,i don't know why every time after do it there is an error: "ValueError: setting an array element with a sequence."
I don't know why?
from sklearn.linear_model import LogisticRegression
trainX= [['39', 'State-gov', '77516', 'Bachelors', '13', 'Never-married', 'Adm-clerical', 'Not-in-family', 'White', 'Male', '2174', '0', '40', 'United-States'], ['50', 'Self-emp-not-inc', '83311', 'Bachelors', '13', 'Married-civ-spouse', 'Exec-managerial', 'Husband', 'White', 'Male', '0', '0', '13', 'United-States']]
model = LogisticRegression()
trainY=['<=50K', '<=50K']
model.fit(dataX,dataY)
The text was updated successfully, but these errors were encountered: