The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Model with dummy variables has 100% accuracy?

happy_neidhappy_neid Member Posts: 10 Contributor I
edited June 2019 in Help

I made a classification model using logistic regression. At first, i used data set that has some nominal variables. Since my task says that i should convert nominal to numeric variables, i used  dummy coding in Nominal to Numeric operator, to do that.. Then i saved that file and make a model just like in the pics, but all the time i get accuracy 100%, so something is not ok. Before i did dummy coding, accuracy was 82% with the same model.

Model.PNGProcesscross validation.PNGCross Validation

Tagged:

Answers

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

    Hi,

     

    you most likely overtrained. Try to put nominal to numerical into X-val and use group models to get it over. Keep in mind that X-val is only validating what's inside her.

     

    Every time you extract something from the whole data set and get a transformation from it you technically need to do it INSIDE of x-val. This includes replacing of missing values with averages, normalization but also dummy coding. But it's rare that the effect is that extreme.

     

    Best,

    Martin

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