Changeset 37 for prextra


Ignore:
Timestamp:
08/29/12 13:32:21 (12 years ago)
Author:
dtax
Message:

Allow also to classify double matrices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prextra/loglc2.m

    r34 r37  
    2323    name = 'Logistic2';
    2424    if ~exist('minFunc', 'file')
    25         prwarning(1, 'LOGLC2 requires the minFunc optimizer. Please download it from www.di.ens.fr/~mschmidt/Software/minFunc.html and add it to the Matlab path.');
     25        error('LOGLC2 requires the minFunc optimizer. Please download it from www.di.ens.fr/~mschmidt/Software/minFunc.html and add it to the Matlab path.');
    2626    end
    2727   
     
    4949       
    5050    % Handle evaluation of a trained LOGLC2 W for a dataset A
    51     elseif isa(A, 'dataset') && isa(W, 'mapping')
     51    elseif (isa(A, 'dataset') && isa(W, 'mapping')) || (isa(A, 'double') && isa(W, 'mapping'))
    5252       
    5353        % Evaluate logistic classifier
Note: See TracChangeset for help on using the changeset viewer.