From e6d44d0502816b836f68d6e96dac16215a912beb Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 1 Nov 2017 14:07:56 +1100 Subject: [PATCH] Update cnn_train.m --- examples/cnn_train.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cnn_train.m b/examples/cnn_train.m index 99edd5db..1aac3e37 100644 --- a/examples/cnn_train.m +++ b/examples/cnn_train.m @@ -93,7 +93,7 @@ % setup error calculation function hasError = true ; -if isstr(opts.errorFunction) +if ischar(opts.errorFunction) switch opts.errorFunction case 'none' opts.errorFunction = @error_none ;