Can we get negative mean square error?

5 views (last 30 days)
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 Comments
the cyclist
the cyclist on 7 Jul 2022
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
Soumyabrata Bhattacharjee on 12 Jul 2022
Hey Cyclist, thanks a lot for your response. I am using Optimizable SVM, from Statisctcs and Deep Learning Toolbox. I have attached the data file, for your kind perusal. Please let me know if I can provide any more details.

Sign in to comment.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!