'Filter Examples' does not update Metadata
I am using the Aylien API for Sentiment Analysis. It classifies text as positive, negative or neutral. For the sake of a training example, I am filtering out the neutral answers in order to leave just positive and negative, and then checking performance with the Performance operator. The label has just two classes, positive and negative.
The Performance operator is giving me an error "the prediction values do not match the label attributes". The label is positive and negative but the prediction still has three values, positive, negative and neutral, even though I have filtered out the neutral ones. The metadata for the prediction still includes 3 values (but zero instances of neutral).
How can I correct this?
Many thanks!
Best Answer
-
Andrew RapidMiner Certified Expert, RapidMiner Certified Master, Member Posts: 47 Guru
Hello dhampton
The operator you want is "Remove Unused Values"
regards
Andrew
3
Answers
Worked perfectly. Many thanks Andrew for taking the trouble!
David