🦉 🎤   RapidMiner Wisdom 2020 - CALL FOR SPEAKERS   🦉 🎤

We are inviting all community members to submit proposals to speak at Wisdom 2020 in Boston.


Whether it's a cool RapidMiner trick or a use case implementation, we want to see what you have.
Form link is below and deadline for submissions is November 15. See you in Boston!

CLICK HERE TO GO TO ENTRY FORM

"R text/regression output results"

farmerfarmer Member Posts: 15 Contributor I
edited June 6 in Help
I've managed to get the R script working and displaying data frame numeric output in the Results section. My question is, it is possible to view R text output, such as regression results, or do I need to run a RapidMiner regression process in order to see the underlying estimated regression? Specifically, if I use the R lm command to generate the regression equation and then the summary(dependent variable) command, where does the summary output go? Thanks.

Answers

  • mschmitzmschmitz Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 2,155  RM Data Scientist
    Hi,

    i never used the R extension myself. But it should be visible in the Log window. I would highly recommend to use the new R scripting extension.

    Cheers,
    Martin
    - Head of Data Science Services at RapidMiner -
    Dortmund, Germany
  • farmerfarmer Member Posts: 15 Contributor I
    I've tried this, but the R output does not appear in the Log view window. Basically, I'm looking to capture the output from the R script somewhere in RapidMiner. If anyone uses R perhaps they could let me know how. Thanks
  • David_ADavid_A Administrator, Moderator, Employee, RMResearcher, Member Posts: 179  RM Research
    You have to explicitly use a print() command in your R script to print  the summary to the Log window in RapidMiner.
    If you want to capture and store your results, you have to take the single values of the summary (which is a list type in R) and extract and store them in a data table. If you do so, you could return them as an example set to RapidMiner.


    Regards,
    David
  • farmerfarmer Member Posts: 15 Contributor I
    Thanks for that, makes sense. I tried Print(summary(model name)) and got the message File Memory buffered filer in the Results window and no output in the Log view window. I'll play around a little.
  • Marco_BoeckMarco_Boeck Team Lead Software Engineering Administrator, Moderator, Employee, Member, University Professor Posts: 1,813   RM Engineering
    Hi,

    the old "R Extension" has been discontinued. If you are running Studio 6.4, you can use the all new "R Scripting" extension. All replies here refer to this new extension.

    Regards,
    Marco
  • farmerfarmer Member Posts: 15 Contributor I
    Hi,

    Yes, I drag the Execute R operator into the process window and then write the script in the Edit Parameter Text:script. Will play around some more.
  • farmerfarmer Member Posts: 15 Contributor I
    Problem now solved. Some careless script coding on my part and now using the print() function, not Print(), to direct output to the console.

    As an aside: 1) is it possible to obtain the Log output without dates and times and 2) increase the size of the font? Thanks.
  • farmerfarmer Member Posts: 15 Contributor I
    Hi,

    A couple of questions:

    The R Edit Parameter Text: script editor is rather basic, is it possibler to replace it with an alternative/link to an alternative, for example, Notepad++?

    Also, I take it that any variables generated in the R script are not available to access directly by Rapidminer, as they are no longer generated by the interactive console, as was the case previously? I guess my question is, how do I get variables from the R script into Rapidminer? Thanks.
  • farmerfarmer Member Posts: 15 Contributor I
    To be spefici, the write.csv(data frame,file="file name) instruction in R does does not seem to work - need to use the RapiMiner icon to achieve this. Does anyie else have this iussue?
Sign In or Register to comment.