Loss functions in MATLAB

7 次查看(过去 30 天)
Fatma Elzahraa Ahmed
评论: Jan 2016-12-2
I want to know how to interpret the loss functions results in MATLAB?
On other words, for example if I got 0.3247 as a results of kfoldLoss() function, is this mean that it is a 32.47% or it is a 0.3247%, or how correctly can I define/interpret this obtained result? If we supposed that the output of my question will be 32.47%, then, how can we interpret a result in the help of MATLAB of the kfoldloss() function as 44.9635 where L = kfoldLoss(cvmodel,'mode','individual')?
Thank you very much in advance

回答(1 个)

Jan
Jan 2016-12-2
If the function replies 0.3247, the calculated result is 0.3247. There is no reason to assume, that the value is meant as percent.
The 2nd part of your question is not trivial. As far as I understand you assume that the result of the function should be 0.3247, but Matlab replies 44.9635. Because Matlab is frequently tested, I would dare to assume, that your assumption is wrong. But how could we know this?
  2 个评论
Fatma Elzahraa Ahmed
I did not assume the result. what I meant is that for my evaluation, MATLAB output was 0.3247. When I asked this question in other forum they told me that 0.3247 would be equivalent to 32.47%. Therefore, I am just asking if what they told me is right, then how 44.9635, which is a result existed in MATLAB help, would be interpreted?
Note: the cause of my question is because I can obtain the correct rate of my predictor as 0.9825 for example using classperf() which is equivalent to 98.25%. So, I just wanted to clarify how the "loss functions" represent the results? Are they should be interpreted as they are directly or they are a percentages?
Thank you for your reply
Jan
Jan 2016-12-2
The meaning of "%" is 0.01 . 0.32 and 32% are not only equivalent but exactly the same. 44.96 is the same as 4496% .
It is unusual, that a numerical function reply the results in percent. And if kfoldLoss do this, you would find this mentioned in the documentation explicitely.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by