How can I find "evaluateFit" function of matlab?
6 ビュー (過去 30 日間)
古いコメントを表示
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
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...
採用された回答
Walter Roberson
2022 年 5 月 25 日
https://github.com/Hassan1503/MATLAB-UDF/blob/main/evaluateFit.m has the source code.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!