'Filter Examples' does not update Metadata

dhamptondhampton Member Posts: 14 Contributor II
edited November 2018 in Help

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!

 

Tagged:

Best Answer

  • AndrewAndrew RapidMiner Certified Expert, RapidMiner Certified Master, Member Posts: 47 Guru
    Solution Accepted

    Hello dhampton

     

    The operator you want is "Remove Unused Values"

     

    regards

     

    Andrew

Answers

  • dhamptondhampton Member Posts: 14 Contributor II

    Worked perfectly.  Many thanks Andrew for taking the trouble!

     

    David

Sign In or Register to comment.