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

"Line in linear regression"

JSP007JSP007 Member Posts: 5 Contributor II
edited June 2019 in Help
Hello,
I am new to this Forum but I have searched extensively for this feature but did not find it so I post it as a suggestion.

When doing linear regression I would like to plot the resulting line automatically. The way I am doing it now is to get the slope/intercept from the model and then program it in another operator to get a new attribute column that I then plot. Quite cumbersome, I would say.

One way to develop this is to be able to refer to results from the previous operator. Illustrating this for the Linear Regression calculation:

y = m x + b

OperatorRegression_Result_01 x attribute_X + OperatorRegression_Result_02

This would apply for any result from any operator, of course, not only Regression operator.

I am forcing open doors here and all this can be done in an easy way? (not involving other programming, XML etc.)

Best regards and thanks for an awesome product, RapidMiner!
Tagged:

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hi,

    just apply the Linear Regression and plot the prediction versus your x value in a scatter plot. To also see the true results, use a scatter multiple and plot prediction and label versus the x value.
    To actually plot a line instead of dots try the series plotter, or go directly for the advanced charts.


    Best regards,
    Marius
Sign In or Register to comment.