How to get sample names from scatter plot in classification learner
1 view (last 30 days)
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
KSSV on 18 Aug 2022
Edited: KSSV on 18 Aug 2022
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.
Image Analyst on 19 Aug 2022
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.