Error Filter examples operator - parameter correct_predictions

maedmaed Member Posts: 5 Contributor II
edited November 2018 in Help

Hi

 

There's an error showing up when using "Filter examples" operator and choosing "correct_predictions" in parameters. 

Am I doing something wrong or it's just a bug? Can I do this filtering in any other way?

 

Thank you in advance!

Tagged:

Best Answers

  • Telcontar120Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 Unicorn
    Solution Accepted

    If you are using "Select attributes" anywhere in your process then you'll need to select the check box "include special attributes."  If you are using "Filter Examples" just try running the process once without the filter set to allow the metadata to propogate, and then your attribute should be avilable in the customer filter dropdown.  You might also want to check the "synchronize meta data with real data" option under the "process" menu at the top.  After that it should work as Ingo stated.  I tried it with one of my datasets and the prediction attribute shows up just fine.

     

    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
  • maedmaed Member Posts: 5 Contributor II
    Solution Accepted

    Hi Brian

     

    I didn't have any "Select attributes" in the process but the "synchronize meta data with real data" did make the trick.

     

    Thanks a lot!

     

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,485 RM Data Scientist

    Hi Maed,

     

    does your example set contain both a label and a prediction attribute with the corresponding role?

     

    ~Martin

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • edimalaedimala Member Posts: 3 Contributor I

    Hi Martin

     

    My example set doesn't contain label attribute, only a prediction one applied by a model.

     

    So, I have an unlabeled dataset on which a model was applied. After the prediction, I wanted to filter only the examples predicted as true. It seems I cannot do it.

     

    Thanks

  • IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,751 RM Founder

    But "true" does not necessarily mean "correct" here... ;-)

     

    In order to use the filter correct predictions, you indeed need both a label attribute (containing the information what value actually is correct) plus a predicted label (which is compared against the true values in the label column).  If the label is missing, this particular filter option of course does not work then.

     

    What you are looking for is just a regular filter:

     

    1. Leave the condition class on "custom filter"
    2. Click on the "Filters..." button
    3. Select your prediction column on the left
    4. Select "equals" in the middle
    5. Select or enter "true" on the right

    The result will be all examples (i.e. rows) with a value of "true" in the prediction column.

     

    Hope this helps,

    Ingo

  • edimalaedimala Member Posts: 3 Contributor I

    Hi Ingo

     

    Thank you for answering.

     

     

    In my case I have:

    1. An unlabeled dataset.

    2. The model (built elsewhere) is applied to the unlabeled dataset and the result is a new attribute is added to the dataset with the prediction.

     

    How can I have a label where my data is unlabeled? I already tried what you proposed but the prediction attribute doesn't show at all when inside the "custom filter".

     

    I am probably doing something wrong but I don't get it.

  • edimalaedimala Member Posts: 3 Contributor I

    Hi Ingo

     

    Thank you for answering. I still have some issues...

      

    In my case I have:

    1. An unlabeled dataset.

    2. The model (built elsewhere) is applied to the unlabeled dataset and the result is a new attribute added to the dataset with the prediction.

     

    How can I have a label where my data is unlabeled? I already tried what you proposed but the prediction attribute doesn't show at all when inside the "custom filter".

     

    I am probably doing something wrong but I don't get it.

     

    Thanks

    Edi

Sign In or Register to comment.