🎉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

Result of RapidMiner model -> input to Execute R Script

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

Hi Gurus,

I am new to rapidminer, I was able to implement a couple of R models(C5,rpart) in rapid miner successfully. Now I am trying to use the result of rapid miner model (Decision Tree) as input to R script , I am getting the below error :

     "Incompatible data (Decision Tree) delivered at port input 1. The data delivered at the specified port was of the wrong type."
Unable to find a way to read the output of Rapidminer as input to R-script.

What I am trying to achieve:

1) I want to create a new field in the final output that explains in text how a data point was predicted as 0 or 1 (Binary -Decision Tree)

 

Example: if my model takes three variables a,b,c had the below conditions:

a>10 

  b<5 :1 {1=6,0=0}

c<5 :0 {1=0,0=3}

So in my final dataset it should have created a column for all 1's with text "a>10 & b<5" and all 0 as "C<5"

My Execute R script will have 2 inputs 

1)Model (which has the conditions) 

2)Test dataset+predictions (on which the text variable has to be created) 

 

My final output should look like below 

a       b     c            Text (New column created after R script)

19    3       7      "a>10 & b<5"

5      8      3        "c<5"

 

Any help/tips would be greatly appreciated.

 

 

 

 

 

Find more posts tagged with