Changeset 544


Ignore:
Timestamp:
Mar 5, 2006, 6:33:33 PM (16 years ago)
Author:
Peter
Message:

corrected SVM::make_classifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/SVM.cc

    r543 r544  
    5757    // Peter, should check success of dynamic_cast
    5858    const KernelLookup& tmp = dynamic_cast<const KernelLookup&>(data);
    59     SVM* sc = new SVM(tmp,target);
     59    SVM* sc;
     60    if (score_)
     61      sc = new SVM(tmp,target,*score_,nof_inputs_);
     62    else
     63      sc = new SVM(tmp,target);
     64
    6065    //Copy those variables possible to modify from outside
    6166    return sc;
Note: See TracChangeset for help on using the changeset viewer.