The purpose of this document is to give you a tutorial on how to customize your own parser and integrate it in LightGBM to do training. The basic methodology is to register custom parser to parser factory via reflector.
- Follow LightGBM Parser interface and design your parser by implementing constructor,
ParseOneLine
,NumFeatures
functions. Then register the custom parser. See FreeForm2Parser as an example. - Append source file of your parser to library in CMakeLists.txt. You could find that LightGBM and transform library are used as dependencies.
- See Installation Guide for dependencies and your parser installation.
- See Transform tutorial for how to use LightGBM integrated with your parser version.