Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

Bug? Training SVM with Nominal Label. Issue with Nominal to Binominal Operator

SGolbertSGolbert RapidMiner Certified Analyst, Member Posts: 344 Unicorn
edited February 2020 in Help

Hi everybody,


I am checking the handout for the course "Basics Part 2", and I am running into an error when training the SVM model. 


The label is called Churn and it has been generated with the Generate Attributes operator:


if(missing(ChurnDate), "loyal", "churn")


This results in a Nominal attribute, later set to role "Label".


When I try to train SVM it warns me that it only works with binominal labels. Then I decided to add a Nominal to Binominal in the ETL process. However after performing this transformation, the Set Role Operator throws the following error:

temp1.png


However the attribute IS present, as shown by putting a breakpoint after Nom to Bin:

temp2.PNG


Furthermore if I Execute the ETL process as the first steps in the training process, I get an error that label information is missing (but surprisingly I am able to train the model anyway):

temp3.PNG


But the strangest thing is that if I store the data set at the end of the ETL step, and then recall it (called svm temp in the last picture) everything runs ok. I think there is some kind of problem with the Nominal to Binominal Operator, what do you think about it?


Best regards,

Sebastian

Answers

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

    Dear Sebastian,

    a general thing is, that the difference between nominal and binominal is rather a meta-data thing than a real problem. The meta data tells the SVM that this is nominal. Once the data "arrives" RM can check and realize, that the data is nominal, but only has two classes. So it can run. This is why the SVM produces no error.

     

    The thing with set role is a bit odd. can you sent me the process or the full repository so I can have a look?

     

    Which training did you attend? The last basics 1 in Dortmund?

     

    Best,

    Martin

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.