mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Clean up code (#1939)
This commit is contained in:
parent
1649374a5c
commit
174c142eff
1 changed files with 3 additions and 6 deletions
|
|
@ -322,13 +322,10 @@ void write_scores(std::vector<T>& scores, POST_EVAL_TRANSFORM post_transform, in
|
|||
scores[0] = ComputeProbit(scores[0]);
|
||||
} else {
|
||||
switch (add_second_class) {
|
||||
case 0: //0=all positive weights, winning class is positive
|
||||
case 0:
|
||||
case 1:
|
||||
scores.push_back(scores[0]);
|
||||
scores[0] = 1.f - scores[0]; //put opposite score in positive slot
|
||||
break;
|
||||
case 1: //1 = all positive weights, winning class is negative
|
||||
scores.push_back(scores[0]);
|
||||
scores[0] = 1.f - scores[0]; //put opposite score in positive slot
|
||||
scores[0] = 1.f - scores[0];
|
||||
break;
|
||||
case 2: //2 = mixed weights, winning class is positive
|
||||
if (post_transform == POST_EVAL_TRANSFORM::LOGISTIC) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue