How to predict unknown data with a Regression​Partitione​dSVM-model

조회 수: 6 (최근 30일)
Dimitri
Dimitri 2019년 8월 23일
답변: Lucio Cetto 2019년 9월 12일
Hello,
Is it possible to use the result of fitrsvm(X,Y,'KFold',5) for predicting unknown, new data? If you have a normal RegressionSVM-model you can use the predict function for new data, but for RegressionPartitionedSVM-model you only have the kfoldpredict option, whose only input is the model itself.

답변 (2개)

Lucio Cetto
Lucio Cetto 2019년 9월 12일
Hi,
Let me add to what Shubh already said, the partitioned model contains several models, so which one should be used for prediction? Partitioned models should only be used to asses the predictive performance of your modeling approach but not for pedicting on new data, it's better to train a new model using all the data once you are happy with the cross-validated results.
Lucio

Shubh Sahu
Shubh Sahu 2019년 8월 28일
Hello,
There is no dedicated function which can predict unknown data with a regression Partitioned SVM model, but we are still working on it to enhance the forecast function so that it can be done. You can try these steps
mymodel=fitrsvm(X,Y,'KFold',5);
yHat = kfoldPredict(mymodel)
%estimate yHAt so that you can see the predicted value is approximately equal to observed
You can write manually code for it. Here are some links that you can refer to:

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by