• Vadim Pisarevsky's avatar
    add 2 extra methods to ml::TrainData (#7169) · 40b87070
    Vadim Pisarevsky authored
    * expose 2 extra methods from ml::TrainData: getNames() and getVarSymbolFlags(). The first one returns text labels from CSV (if the data has been loaded from CSV); the second one returns a matrix of boolean values; its n-th element is 1 iff the corresponding column in the CSV uses symbolic names, not numbers.
    
    * check that the dynamic_cast succeeds
    40b87070
data.cpp 34.9 KB