Can we get negative mean square error?
이전 댓글 표시
I am getting negative mean square error, while training a SVM model. What is confusing me is that, squared errors should not be negative, is this any bug or is it something that I am missing?

댓글 수: 4
I would view it to be a bug, but it's possible that MSE is calculated with constant terms dropped. That is, if MSE has the general form,
MSE(θ) = 
the
term is independent of the design parameters θ and can therefore be dropped without affecting optimization. This would allow negative values.
Soumyabrata Bhattacharjee
2022년 7월 7일
the cyclist
2022년 7월 7일
Are you able to post the data, and the model that gave negative MSE? I know that sometimes R^2 can be negative (when constructed in certain ways for an ML model), but I am also surprised to get MSE negative.
Soumyabrata Bhattacharjee
2022년 7월 12일
답변 (0개)
카테고리
도움말 센터 및 File 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!