Is there a way to get a confidence/probability score on fitrsvm or other regression techniques like fitrensemble using the 'predict' function?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rashmi Sundareswara
el 10 de Jul. de 2021
Comentada: Rashmi Sundareswara
el 12 de Jul. de 2021
Is there a way to get a confidence/probability score on fitrsvm or other regression techniques like fitrensemble using the 'predict' function? I know that it exists for fitcsvm (predict returns class probability), so I am looking for a similar function for the regresssion twechniques.
0 comentarios
Respuestas (1)
Ive J
el 11 de Jul. de 2021
You already answered yourself!
% MATLAB doc for fitrsvm
load carsmall
X = [Horsepower,Weight];
Y = MPG;
Mdl = fitrsvm(X,Y);
% predict with new data
Xnew = randn(size(X));
Ynew = Mdl.predict(Xnew);
For other regression functions, you can do similarly. Also, you can easily check the methods available for objects from leaners:
ismethod(Mdl, 'predict') % true
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!