How to test using Matlab IDE?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have got a training data. I have used the 'train' option to tain the SVM kernel. Now I have a test data also. How i can test SVM kernel using test data. Please guide me.
Is there a test option or not in Matlab IDE?
Please guide me how to test using the test data through Matlab IDE using SVM Kernel (Guassian).
Zulfi.
4 个评论
madhan ravi
2018-12-1
Please don't use the answer section for commenting use comment section instead. Thank you for understanding.
回答(1 个)
Alok Nimrani
2018-12-7
Hi Zulfiqar,
If you want to train a SVM kernel and use it later for testing, please have a look at the following link which describes the use of a Gaussian kernel for training a classificaiton model and then using 'predict' function to test the kernel: Gaussian Kernel Classification Model
However, if your goal is to perform regression, the following link might be helpful which describes the use of Gaussian kernel training for a regression model and then testing this model using 'predict' function: Gaussian Kernel Regression Model
Kindly go through the examples in these links. Hope this helps.
Regards,
Alok
2 个评论
Alok Nimrani
2019-1-2
Hi,
Sorry for the delayed response. Please note that the predict function can be used with either a RegressionKernel model object or a ClassificationKernel model object as specified in the input arguments of the links shared in the above answer. So, the error that you are getting is probably because your model is not belonging to one of these types.
Try creating a RegressionKernel or a ClassificationKernel model object and then use the predict function. If this does not resolve the issue, please share a sample code so that I can reproduce the issue.
Regards,
Alok
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!