Why i get 100% accuracy using CVPartion and SVM

조회 수: 5 (최근 30일)
nurin noor
nurin noor 2021년 6월 17일
댓글: nurin noor 2021년 6월 24일
Hi everyone, i am new to machine learning. I am trying to classify "model1". I used cv partition with 70% of test and 30% of training. However, i am getting 100% accuracy. i am afraid i am using the same data to test and train but i thought cvpartition would help to seperate the data, right? Or i am using the same data for train and testing? Here is my code. I was referring the code from here
https://www.mathworks.com/matlabcentral/answers/377839-split-training-data-and-testing-data

채택된 답변

Asvin Kumar
Asvin Kumar 2021년 6월 24일
Your usage of cvpartition is correct. You are not using the same data for training and testing.
Your SVM jusr seems to be working very well.
  댓글 수: 3
Asvin Kumar
Asvin Kumar 2021년 6월 24일
Yes, that's what I meant. Everything should be working fine as your cvparition is correct. Data test and training are different.
Why the accuracy is 100% depends on the specific problem that you are trying to solve. SVMs just might be well suited for your data.
nurin noor
nurin noor 2021년 6월 24일
i see. very much understood. it is such a relief to know my SVM implementation is correct. Thank you so much !!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Classification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by