"Line in linear regression"

JSP007JSP007 MemberPosts:5Contributor I
edited June 2019 inHelp
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

这将申请任何源于运营商,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, MemberPosts:1,869Unicorn
    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 InorRegisterto comment.