필터 지우기
필터 지우기

How to run "fitrsvm" command in Matlab R2014b?

조회 수: 6 (최근 30일)
Rahul Verma
Rahul Verma 2024년 6월 21일
댓글: Pavan Sahith 2024년 6월 21일
I am currently using Matlab R2014b, it doent support command "fitrsvm". I have to use Support Vector Machine. Kindly suggest me, how can i run my code using this command? As I am using this older version of Matlab.
Thank you.

답변 (1개)

Pavan Sahith
Pavan Sahith 2024년 6월 21일
편집: Pavan Sahith 2024년 6월 21일
Hello Rahul,
I see that you are seeking an equivalent to the fitrsvm function for regression Support Vector Machines (SVMs) in MATLAB R2014b.
Unfortunately, fitrsvm is not available in this version. However, you can utilize the svmtrain function, which was used in earlier versions of MATLAB for training SVM models.
you can refer to this example which helps you get started with svmtrain:
load fisheriris
xdata = meas(51:end,3:4);
group = species(51:end);
svmStruct = svmtrain(xdata,group,'ShowPlot',true);
In this example , we load the Fisher Iris dataset, select a subset of features and classes, and then use svmtrain to train the SVM model. The ShowPlot option is set to true to visualize the data and the decision boundary.
Hope this will help you getting started
  댓글 수: 2
Rahul Verma
Rahul Verma 2024년 6월 21일
편집: Rahul Verma 2024년 6월 21일
Is there any chance that I can add on the extension or library to update and use the command fitrsvm?
Thanks for the suggestion sir.
Pavan Sahith
Pavan Sahith 2024년 6월 21일
As of my knowledge , you need to update the MATLAB version to use the latest features

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by