Skip to content

Commit

Permalink
ClassificationDiscriminant: change data set in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0m1th3as committed Aug 27, 2024
1 parent 4264a47 commit 48e633c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/Classification/ClassificationDiscriminant.m
Original file line number Diff line number Diff line change
Expand Up @@ -1298,11 +1298,11 @@ function savemodel (this, fname)
%! y = species;
%! Mdl = fitcdiscr (meas, species, "Gamma", 0.5);
%! [label, score, cost] = predict (Mdl, [2, 2, 2, 2]);
%! assert (label, 'versicolor')
%! assert (label, {'versicolor'})
%! assert (score, [0, 0.9999, 0.0001], 1e-4)
%! assert (cost, [1, 0.0001, 0.9999], 1e-4)
%! [label, score, cost] = predict (Mdl, [2.5, 2.5, 2.5, 2.5]);
%! assert (label, 'versicolor')
%! assert (label, {'versicolor'})
%! assert (score, [0, 0.6368, 0.3632], 1e-4)
%! assert (cost, [1, 0.3632, 0.6368], 1e-4)
%!test
Expand Down

0 comments on commit 48e633c

Please sign in to comment.