Calculate logistic regression in python

后端 未结 1 1488
情书的邮戳
情书的邮戳 2021-02-09 16:44

I tried to calculate logical regression. I have the data as csv file. it looks like

node_id,second_major,gender,major_index,year,dorm,high_school,student_fac
0,         


        
相关标签:
1条回答
  • 2021-02-09 17:22

    There's nothing wrong with your code. My guess is that you have missing values in your data. Try a dropna or use missing='drop' to Logit. You might also check that the right hand side is full rank np.linalg.matrix_rank(data[train_cols].values)

    0 讨论(0)
提交回复
热议问题