|
| LibSVMParser (int label_idx) |
|
void | ParseOneLine (const char *str, std::vector< std::pair< int, double > > *out_features, double *out_label) const override |
| Parse one line with label.
|
|
int | TotalColumns () const override |
|
virtual | ~Parser () |
| virtual destructor
|
|
|
static Parser * | CreateParser (const char *filename, bool header, int num_features, int label_idx) |
| Create a object of parser, will auto choose the format depend on file.
|
|
◆ ParseOneLine()
void LightGBM::LibSVMParser::ParseOneLine |
( |
const char * |
str, |
|
|
std::vector< std::pair< int, double > > * |
out_features, |
|
|
double * |
out_label |
|
) |
| const |
|
inlineoverridevirtual |
Parse one line with label.
- Parameters
-
str | One line record, string format, should end with '\0' |
out_features | Output columns, store in (column_idx, values) |
out_label | Label will store to this if exists |
Implements LightGBM::Parser.
◆ TotalColumns()
int LightGBM::LibSVMParser::TotalColumns |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file:
- External/LightGBM_2.2.3/LightGBM-2.2.3/src/io/parser.hpp