Skip to content

Commit e94e6b0

Browse files
authored
use percent for probability instead of scientific notation (#431)
1 parent fb8d7bf commit e94e6b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/ImageClassifier/ImageClassifier.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ private void RenderInferenceResults(IEnumerable<string> labels, IReadOnlyList<fl
440440
new Controls.Prediction {
441441
Index = zippedResult.First,
442442
Name = zippedResult.Second.First.Trim(new char[] { ',' }),
443-
Probability = zippedResult.Second.Second.ToString("E4")
443+
Probability = zippedResult.Second.Second.ToString("P")
444444
});
445445
InferenceResults.ItemsSource = results;
446446
InferenceResults.SelectedIndex = 0;

0 commit comments

Comments
 (0)