필터 지우기
필터 지우기

How to create a loop to run my training dataset 1000 times?

조회 수: 1 (최근 30일)
Robin Li
Robin Li 2019년 5월 1일
댓글: KSSV 2019년 5월 1일
I have my training dataset randomly selected from 80% of my (x,y) time-series, and my goal is to do polynomial curve fitting from degree one to four and find the best fitting looking at each RMSE
Screen Shot 2019-05-01 at 9.28.20 AM.png
So my "training" is different subset of my whole dataset each time I run the command.
Screen Shot 2019-05-01 at 9.28.26 AM.png
and each of the RMSE is also different for the same reason.
My goal is to run the whole session 1000 times and then find the average of each RMSE. For example, to have mean_RMSE1=sum of all RMSE1/1000 and so on. I want to select the smallest mean_RMSE over the four alternatives.
So how could I write the syntax to achieve this purpose?
  댓글 수: 3
Robin Li
Robin Li 2019년 5월 1일
Thank you.
Then how can I get the mean of all the 1000 events?
KSSV
KSSV 2019년 5월 1일
Initiliaze the requied values before loop...save them in the loop and after use mean.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Regression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by