RapidMiner 9.8 Beta is now available

Be one of the first to get your hands on the new features. More details and downloads here:

GET RAPIDMINER 9.8 BETA

Trouble with Applying a Linear Regression Model with Nominal Attribute

YyZ_cnYyZ_cn Member Posts: 2 Contributor I
edited October 2019 in Help

Hi there,

I build a linear regression model with nominal attribute converted to numerical attribute (e.g. SMOKE=0, SMOKE=1). I tried both effect encoding and dummy encoding. Then I tried applying this model to a testing dataset in which the value of SMOKE attribute in all observations is 0. Rapidminer says "attributes do not match". How can I solve this?

 

Thanks! 

Best Answer

  • mschmitzmschmitz Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 2,635  RM Data Scientist
    Solution Accepted
    Hi,
    you need to apply the preprocessing model you get from your first Nominal to Numerical operator. This will ensure to have the same data structure.

    Best,
    Martin
    - Head of Data Science Services at RapidMiner -
    Dortmund, Germany

Answers

  • YyZ_cnYyZ_cn Member Posts: 2 Contributor I

    Thank you!

    Sorry for the late reply. I did not receive any email notification.

     

     

Sign In or Register to comment.