linear regression optimization

dkpengqiuyangdkpengqiuyang MemberPosts:21Contributor I
edited December 2018 inHelp

Greeting,

I need to predict thermal expand range from tempreture, and I get a test dataset, so I try the linear regression but the result is not good, my setting and data is like below, can you help me to improve the prediction ? thanks.

set.png 28.4K
result.png 12.4K
Tagged:

Best Answer

  • earmijoearmijo MemberPosts:270Unicorn
    Solution Accepted

    From looking at the scatter plot of the two variables you get a sense that there are other important predictors missing from this equation. There is non-linearity so you could use other methods instead of plain vanilla linear regression.

    Investigate further the physics of the process. I know absolutely nothing and Wikipidea tells me pressure is another important variable.

    Screen Shot 2017-06-05 at 9.07.39 AM.png

    sgenzer

Answers

  • binsetyawanbinsetyawan MemberPosts:46Guru

    you can use optimization parameter (grid)operator to get the best parameter for your dataset

    Thomas_Ott
  • dkpengqiuyangdkpengqiuyang MemberPosts:21Contributor I

    my friend do the same job with matlab and the result is well fit the test data , but I can not take the same score with rapidminer. I am still confused about this ...

    1.png 11.7K
  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:1,761Unicorn

    Can you post your RapidMiner process? Maybe we can help troubleshoot.

  • dkpengqiuyangdkpengqiuyang MemberPosts:21Contributor I

    hi,

    you can see the rm process and operator setting in the attachment above, and the origin data is also there.

    I can get a simular output like matlab, when I change the input attribute from "tempreture" to "tempreture change", which means y=kx+b do not work but y=k(x-x1)+b works well in rm, while y=kx+b works well in matlab.

    I am confused about this.

  • yyhuangyyhuang Administrator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:363RM Data Scientist

    @dkpengqiuyangdid you try to delete collinear feature?

    linear.PNG

    Process is attached here.



    < parameter key="repository_entry" value="//RM YY Local Repository/AAA-PROSPECT/data/regression"/>




    < parameter key="attribute_name" value="thermal expand"/>
    < parameter key="target_role" value="label"/>





    < parameter key="feature_selection" value="M5 prime"/>
    < parameter key="alpha" value="0.05"/>
    < parameter key="max_iterations" value="10"/>
    < parameter key="forward_alpha" value="0.05"/>
    < parameter key="backward_alpha" value="0.05"/>
    < parameter key="eliminate_colinear_features" value="false"/>
    < parameter key="min_tolerance" value="0.05"/>
    < parameter key="use_bias" value="true"/>
    < parameter key="ridge" value="1.0E-8"/>





    < parameter key="create_view" value="false"/>


    CraigBostonUSA
Sign InorRegisterto comment.