Why i get 100% accuracy using CVPartion and SVM

7 visualizaciones (últimos 30 días)
nurin noor
nurin noor el 17 de Jun. de 2021
Comentada: nurin noor el 24 de Jun. de 2021
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

Respuesta aceptada

Asvin Kumar
Asvin Kumar el 24 de Jun. de 2021
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 comentarios
nurin noor
nurin noor el 24 de Jun. de 2021
i see. very much understood. it is such a relief to know my SVM implementation is correct. Thank you so much !!

Iniciar sesión para comentar.

Más respuestas (0)


Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by