LinearModel.fit results to array
조회 수: 14 (최근 30일)
I would like to ask about results from LinearModel.fit function. I used the function and it ran smoothly. However, I could not extract the result properly.
I have a 100 set of X and Y. What I would like to have is a array showing coefficient and R-square of all. I basically try to do a loop and have LinearModel.fit function inside. My problem is I could not write out coefficient from mdl.Coefficients and r-square from mdl.Rsquared.Ordinary value to save into my array.
I crated array 100 x 1 to save R-square value from each set. To sum up, how can I save the values of results from each set to array?
Leah 2013년 8월 26일
I was able to do it, i made a dataset mid to hold everything
md = LinearModel.fit()
the cyclist 2013년 8월 26일
is a variable of type dataset.
will be an array of doubles, which I think is what you need.