필터 지우기
필터 지우기

How can I find "evaluateFit" function of matlab?

조회 수: 6 (최근 30일)
G M Fahad Bin Mostafa
G M Fahad Bin Mostafa 2022년 5월 25일
댓글: G M Fahad Bin Mostafa 2022년 5월 25일
load carEcon
whos carData carTrain carTest
mdl = fitlm(carTrain);
econPred = predict(mdl,carTest);
Plot the results. I used it in MATLAB machine learning course, however when I am using evaluateFit in my own version, it is not working.
evaluateFit(carTest.FuelEcon,econPred,"Linear Model")
  댓글 수: 4
dpb
dpb 2022년 5월 25일
Well, you'll need to see about where that course is, then, because the function isn't in the standard MATLAB distribution nor any toolboxes.
There are examples using plot() and the fitlm model and you could produce the same plot sequentially from it...but not as conveniently as a prepackaged routine, granted.
Without a link to the training/course, just looking, don't know there's anything can do...
G M Fahad Bin Mostafa
G M Fahad Bin Mostafa 2022년 5월 25일
Thank you. I can give you the link of the course. If you go to the subsection linear models(ex.11) under section Regression methods, you will find it.

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

채택된 답변

Walter Roberson
Walter Roberson 2022년 5월 25일
https://github.com/Hassan1503/MATLAB-UDF/blob/main/evaluateFit.m has the source code.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by