multi class logistic regression 11 07 2018
play

Multi-Class Logistic Regression 11/07/2018 Liyuan Liu Ph.D. - PowerPoint PPT Presentation

Multi-Class Logistic Regression 11/07/2018 Liyuan Liu Ph.D. Students in Analytics and Data Science Kennesaw State University Multi-class logistic regression 5-cross validation ROC plot Process Data Preparation Softmax Function Gradient


  1. Multi-Class Logistic Regression 11/07/2018 Liyuan Liu Ph.D. Students in Analytics and Data Science Kennesaw State University

  2. Multi-class logistic regression 5-cross validation ROC plot

  3. Process Data Preparation Softmax Function Gradient Descent Model Training and testing Add L1 Regularization 3

  4. Data Preparation 1. Separate raw data to X and Y. 2. Add Intercept. 3. Normalized X use min-max method. 4. One Hot EncodedY. 4

  5. Softmax 1/(1+np.exp(-score)) ( np.exp(score) / np.sum(np.exp(score)) 5

  6. Gradient Descent Learning Rate: 0.01 Epoch: 3000 6

  7. Get Prediction Value Rule: Extract the indexhas the highest probability. The argmax() only for compute accuracy 7

  8. ROC Plot Use numpy.ravel to flatten the array.¶ 8

  9. Result-5 Cross Validation 9

  10. Result L1 Regularization-5 Cross Validation Why Regularization? Reduce Over-fitting Problem. 10

  11. Result L1 Regularization-5 Cross Validation 11

  12. THANKS Liyuan Liu: lliyuan@students.kennesaw.edu

Recommend


More recommend