Skip to content

Commit

Permalink
remove 'whos' function from demos
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0m1th3as committed Feb 10, 2025
1 parent bc1ffef commit 0d53727
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions inst/Classification/CompactClassificationDiscriminant.m
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,7 @@ function savemodel (this, fname)
%! Y = species;
%!
%! Mdl = fitcdiscr (X, Y, 'ClassNames', unique (species))
%! CMdl = crossval (Mdl);
%!
%! whos ('Mdl', 'CMdl')
%! CMdl = crossval (Mdl)

## Test constructor
%!test
Expand Down
4 changes: 1 addition & 3 deletions inst/Classification/CompactClassificationGAM.m
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ function savemodel (this, fname)
%! Y = species;
%!
%! Mdl = fitcdiscr (X, Y, 'ClassNames', unique (species))
%! CMdl = crossval (Mdl);
%!
%! whos ('Mdl', 'CMdl')
%! CMdl = crossval (Mdl)

## Test constructor
%!test
Expand Down
4 changes: 1 addition & 3 deletions inst/Classification/CompactClassificationNeuralNetwork.m
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@ function savemodel (this, fname)
%! Y = species;
%!
%! Mdl = fitcnet (X, Y, 'ClassNames', unique (species))
%! CMdl = crossval (Mdl);
%!
%! whos ('Mdl', 'CMdl')
%! CMdl = crossval (Mdl)

## Test input validation for constructor
%!error<CompactClassificationDiscriminant: invalid classification object.> ...
Expand Down
4 changes: 1 addition & 3 deletions inst/Classification/CompactClassificationSVM.m
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,7 @@ function savemodel (this, fname)
%! Y = species;
%!
%! Mdl = fitcsvm (X, Y, 'ClassNames', unique (species))
%! CMdl = crossval (Mdl);
%!
%! whos ('Mdl', 'CMdl')
%! CMdl = crossval (Mdl)

## Test input validation for constructor
%!error<CompactClassificationSVM: invalid classification object.> ...
Expand Down

0 comments on commit 0d53727

Please sign in to comment.