Cross-Validation of R model failed

phivu
phivu New Altair Community Member
edited November 5 in Community Q&A

Hi RapidMiner,

 

I followed this tutorial (http://community.rapidminer.com/t5/RapidMiner-Studio-Knowledge-Base/Cross-Validation-of-R-Python-Models/ta-p/31978) to do cross validation of R Random Forest regression model but encountered an error as in the attached photo. However, the same R scripts work well for the single validation as in the attached process (Single-Validation.rmp). I also attached the cross validation process here. Do you have any idea?

 

Thanks a lot!

 

Best Regards,

phivu

R-Error.png

Best Answer

  • gmeier
    gmeier New Altair Community Member
    Answer ✓

    Please move your operator "R Apply Model" down a bit. Then you can see that its second input port is not connected to the tes-port. After fixing the connection it should work.

     

    Best,

    Gisa

Answers

  • Thomas_Ott
    Thomas_Ott New Altair Community Member

    The script error appears to be looking for the data. Check your R script for where the data is being loaded from. 

  • gmeier
    gmeier New Altair Community Member
    Answer ✓

    Please move your operator "R Apply Model" down a bit. Then you can see that its second input port is not connected to the tes-port. After fixing the connection it should work.

     

    Best,

    Gisa

  • phivu
    phivu New Altair Community Member

    Thanks Gisa!