필터 지우기
필터 지우기

In demo_libsvm_test1 (line 25) can't open input file ../heart_scale Index exceeds matrix dimensions. Error in demo_libsvm_test1 (line 35) train_data = heart_scal​e_inst(1:1​50,:),I have this error and I need help to solve it

조회 수: 1 (최근 30일)
In demo_libsvm_test1 (line 25) can't open input file ../heart_scale
Index exceeds matrix dimensions.
Error in demo_libsvm_test1 (line 35) train_data = heart_scale_inst(1:150,:)
I have this error and I need help to solve it

답변 (1개)

Walter Roberson
Walter Roberson 2018년 2월 23일
demo_libsvm_test1 is not in any Mathworks-supplied code, and does not appear to be in the File Exchange either. It appears to be in sources source as https://sites.google.com/site/kittipat/libsvm_matlab that expect you to have installed the software (including data files) from that source.
Note that the svm supported as part of the Statistics and Machine Learning Toolbox is not the same as libsvm -- the Mathworks version is probably based upon libsvm but has a different interface including at least one routine with the same name but different calling sequence. dem_libsvm_test1 is not intended for use with the Mathworks svm routines.
  댓글 수: 2
Christine  Zarief
Christine Zarief 2018년 2월 24일
OK ,could I know what the difference between the libsvm and svm as I am confused ,Also I want to get the code of svm through mathworks could you provide me some useful links (Mathworks-supplied code) Thanks
Walter Roberson
Walter Roberson 2018년 2월 24일
libsvm and Mathworks svm both have functions named svmtrain that conflict . But most of the other function names are a little different. See https://www.mathworks.com/help/stats/support-vector-machine-classification.html

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

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by