How to get sample names from scatter plot in classification learner
조회 수: 14 (최근 30일)
이전 댓글 표시
Hi All:
I am training a model using classification learner, sometimes, the training results of some samples are inconsistent with their labels.

In order to analyze the reason, I need to find out the sample who's label is not consistent with its prediction
My current approach is: get the first feature, and then find out which sample this feature belongs to

I think this is error-prone and time-consuming.
So, how should i improve or does matlab provide a convenient way that i don't kown. Thanks
댓글 수: 0
채택된 답변
KSSV
2022년 8월 18일
편집: KSSV
2022년 8월 18일
If you have feature1, feature2 in hand, you can use knnsearch to get the index and then check the sample name.
If you are having the validation data in hand, and you want to see which are not predicted right, note that you have the output in hand already and you can see it's one-to-one correspondence.
댓글 수: 2
추가 답변 (1개)
Image Analyst
2022년 8월 19일
Not sure what you're doing exactly. Did you make up a table variable with your predictors (features)? Then did you make up a variable with the ground truth "answers" (responses)? If so you just specify those as inputs and tell it to train. Then select a model and export the compact model. I don't see any need, after the model has been generated, to scatter one predictor variable against another, unless you're just curious. You won't be doing anything with that. You'll just be plugging in unknown data and getting out a predicted response.
If you have any more questions, let me make the model for you. Attach your predictor variables, and your ground truth (answers) variable so I can make the model for you.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!