how to to evaluate accuracy score for a model in matlab

조회 수: 29 (최근 30일)
SURENDRA BASKEY
SURENDRA BASKEY 2019년 11월 7일
답변: Bhargavi Maganuru 2019년 12월 27일
I have build a decision tree model using matlab.Now i want to test my model with test data.so how can i test my model and calculate the accuracy of my model.thanks in advance
  댓글 수: 6
SURENDRA BASKEY
SURENDRA BASKEY 2019년 11월 7일
i think rms error is used for model like regression.my model is binary classification which predicts either 0 or 1.what i want to know is is there inbuilt fuction in matlab which takes y_true and y_predict and gives prediction accuracy based on no of correct prediction.thank you
Walter Roberson
Walter Roberson 2019년 11월 7일
편집: Walter Roberson 2019년 11월 7일
No, there is no built-in function for that. "accuracy" is not well-enough defined in the situation for there to be a function for that.
If rms() does not do the job for you, you should probably looking at precision or recall rather than some not-defined accuracy .

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

답변 (1개)

Bhargavi Maganuru
Bhargavi Maganuru 2019년 12월 27일
You can use loss function to predict classes for the test data and to get accuracy of prediction.

카테고리

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