Using XGBOOST in c++

前端 未结 6 1646
谎友^
谎友^ 2020-12-13 01:14

How can I use XGBOOST https://github.com/dmlc/xgboost/ library in c++? I have founded Python and Java API, but I can\'t found API for c++

6条回答
  •  被撕碎了的回忆
    2020-12-13 01:46

    I ended up using the C API, see below an example:

    // create the train data
    int cols=3,rows=5;
    float train[rows][cols];
    for (int i=0;i
                                                            
提交回复
热议问题