Ignore:
Timestamp:
01/15/12 00:05:13 (2 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
a1d3d929e242ed688f1d840f8d2fd47995e6da25
Message:

Conversion to numpy now supports multiple classes (Ticket #1012)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/rconversions.cpp

    r7665 r9532  
    2828                        double *&X, double *&y, double *&w, int &rows, int &columns) 
    2929{ 
    30   bool hasClass, classVector, weightVector, classIsDiscrete; 
     30  bool hasClass, classVector, multiclassVector, weightVector, classIsDiscrete; 
    3131  vector<bool> include; 
    3232 
    3333  parseMatrixContents(egen, weightID, contents, multiTreatment, 
    34                           hasClass, classVector, weightVector, classIsDiscrete, columns, include); 
     34                          hasClass, classVector, multiclassVector, weightVector, classIsDiscrete, columns, include); 
     35 
     36  // this does not work if the domain includes multiple classes -- which is irrelevant 
     37  // since nobody calls this function anyway ;) 
    3538 
    3639  rows = egen->numberOfExamples(); 
Note: See TracChangeset for help on using the changeset viewer.