Why i get 100% accuracy using CVPartion and SVM
8 ビュー (過去 30 日間)
表示 古いコメント
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

0 件のコメント
採用された回答
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.
その他の回答 (0 件)
参考
カテゴリ
Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!