Permalink
Browse files

Fix bug when params are specified, they should overwrite the models'

internal params
  • Loading branch information...
1 parent 149f674 commit 5f0b7b9988f96230366ff8ddb4bda5106d01902b @quantombone quantombone committed Jan 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 esvm_detect.m
View
@@ -39,7 +39,7 @@
models = {models};
end
-if isfield(models{1},'mining_params')
+if isfield(models{1},'mining_params') && ~exist('params','var')
params = models{1}.mining_params;
elseif ~exist('params','var')
params = esvm_get_default_params;

0 comments on commit 5f0b7b9

Please sign in to comment.