sta-363-s20 / community

Discussion, Q&A, everything you want to say, formatted nicely
1 stars 0 forks source link

Lab2 exercise9 #25

Closed Cindyyyhey closed 4 years ago

Cindyyyhey commented 4 years ago

Dear Professor Lucy,

I'm working on exercise 9 about qda. I tried to fit the model for qda, but there is an error about "rank deficiency in group aa" in line 151. I’m not quite sure what that means.

Thanks a lot!

9

skywang0407 commented 4 years ago

You may need to run the rsv chunk and the chunk where g is first predicted and then run the qda model again. Or, you may need to change the name of g when turn it to a factor to conduct the confusion matrix.

juserrano commented 4 years ago

Check the issue #26! She helped me out there by adding this line before you fit the model: train$lda_predicted_class <- NULL

Cindyyyhey commented 4 years ago

Thanks you @skywang0407 Let me try that!

Cindyyyhey commented 4 years ago

Thanks! @juserrano