-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Instead of using global tic/toc timers it should use named t1 = tic(); ... toc(t1) construct. Diff:
diff --git a/inst/Classification/ClassificationNeuralNetwork.m b/inst/Classification/ClassificationNeuralNetwork.m
index 049d80ca..770728fd 100644
--- a/inst/Classification/ClassificationNeuralNetwork.m
+++ b/inst/Classification/ClassificationNeuralNetwork.m
@@ -447,12 +447,12 @@
ActivationCodes = [ActivationCodes, code];
## Start the training process
- tic;
+ t1 = tic;
Mdl = fcnntrain (X, Y, LayerSizes, ActivationCodes, ...
LearningRate, IterationLimit, DisplayInfo);
## Store training time, Iterations, and Loss
- ConvergenceInfo.Time = toc;
+ ConvergenceInfo.Time = toc (t1);
ConvergenceInfo.Accuracy = Mdl.Accuracy;
ConvergenceInfo.TrainingLoss = Mdl.Loss;
On a second thought -- the ID name should be more unique, perhaps __t1__?
Metadata
Metadata
Assignees
Labels
No labels