Cross validation and set epoches in svm

조회 수: 9 (최근 30일)
Sarath Raj
Sarath Raj 2019년 9월 25일
답변: Omega 2024년 11월 19일 7:12
How to set epoches and get maximum test and train accuracies in svm ?
I have trained features usind fitsvm().

답변 (1개)

Omega
Omega 2024년 11월 19일 7:12
Hi Sarath,
You can use the in-built MATLAB function 'crossval' for cross-validation to assess how well a model will generalize to unseen data. It helps to mitigate issues like overfitting, where a model performs well on the training data but poorly on new, unseen data. To set the number of epochs, batch size and many other parameters, you can use the 'trainingOptions' function in MATLAB.
To know more about the functions and their detailed use please refer to the following documentations:
Hope this helps!

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by