# RapidMiner

## 'Filter Examples' does not update Metadata

SOLVED
Regular Contributor

# '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!

2 REPLIES
Regular Contributor

## Re: 'Filter Examples' does not update Metadata

Hello dhampton

The operator you want is "Remove Unused Values"

regards

Andrew

Regular Contributor

## Re: 'Filter Examples' does not update Metadata

Worked perfectly.  Many thanks Andrew for taking the trouble!

David