我正在尝试使用LightGBM C ++版本(c_api)。当我尝试以下代码时,出现错误out is nullptr
char* filename = "D:/LightGBM/LightGBM-master/examples/regression/regression.train";
char* parameters = "task=train boosting_type=gbdt objective=regression metric=l2";
DatasetHandle* dataset;
int loadtag = LGBM_DatasetCreateFromFile(filename, parameters, nullptr, dataset);
if (loadtag == 0) {
cout << "load dataset success!" << endl;
}
因为几乎没有lightgbm的C ++示例和文档。有人可以帮我吗?