🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Trouble with Applying a Linear Regression Model with Nominal Attribute

User: "YyZ_cn"
New Altair Community Member
Updated by Jocelyn

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! 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "MartinLiebig"
    Altair Employee
    Accepted Answer
    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