Python : How to use Multinomial Logistic Regression using SKlearn

后端 未结 2 1126
北荒
北荒 2021-02-19 07:26

I have a test dataset and train dataset as below. I have provided a sample data with min records, but my data has than 1000\'s of records. Here E is my target variable which I n

2条回答
  •  粉色の甜心
    2021-02-19 07:56

    You could try

    LogisticRegression(multi_class='multinomial',solver ='newton-cg').fit(X_train,y_train)
    

提交回复
热议问题