ROC with PCA

Amin_fakharAmin_fakhar MemberPosts:2Newbie
I am gonna show a comparison KNN model before and after applying PCA through ROC but get this error, can anyone help me?

Answers

  • lionelderkrikorlionelderkrikor Moderator, RapidMiner Certified Analyst, MemberPosts:1,195Unicorn
    Hi@Amin_fakhar,

    Two items :

    1. You don't need to implementCross Validationoperators inside theCompare ROCoperator. TheCompare ROCoperator itself
    performs a k-fold cross validation to calculate the ROC curves. (just set the number of folds k in theCompare ROCparameters)
    2. To avoid the error you describe, please use theGroup Modelsoperator forPCAandkNN.

    Check the working process in attached file and adapt it to your own data.

    Hope this helps,

    Regards,

    Lionel
    Amin_fakhar
  • Amin_fakharAmin_fakhar MemberPosts:2Newbie
    edited May 2020
    Hi@lionelderkrikor,
    Yes, great thanks, it works, thank u so much for your attention.
    lionelderkrikor
Sign InorRegisterto comment.