🎉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

How can I apply my model with optimize parameters on a test set?

User: "Samira_123"
New Altair Community Member
Updated by Jocelyn
Hello,

I have a question  regarding my classification assignment. I have to predict whether or not donors will donate (class 0 and class 1).

I built a model thanks to the 'optimize parameters' (as it was advised here) and I used the random forest. I got a relevant kappa, a good coefficient matrix and a costs matrix.

The performance of the model is satisfying but I have an issue.
I want to 'Apply Model' on a test set (from read csv) with the model I built with optimize parameters. However, when I try to apply the model to get the predictions of the this test set, there is an issue with rapid miner. 


I need to apply the model on this test set to get the class predictions of the donors but unfortunately I can't. 

I tried to find information online but didn't find anything relevant. The way I proceed is perhaps not correct.

Once I get the class predictions from this test set, I have to use the write csv.

Thank you,

Wish you all a good weekend!  

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "lionelderkrikor"
    New Altair Community Member
    Accepted Answer
     @Samira_123,

    The attributes in your training set and in your test set must be strictly the same.
    In other words, all the preprocessing steps you applied to your training set before modelling have to be performed in your test set too.
    I see, especially, that, in your training set, you use   : 
     - 2 Generates Attributes operators : you have to generate the same attributes in your test set before scoring.
     - a Nominal to Numerical operator : This operator performs "one hot encoding" on your training set and it generates new attributes.
    You have to apply this operator to the attributes concerned in your test set too according the following principle : 



    Regards,

    Lionel