| 502 | |
| 503 | |
| 504 | int LGBM_DatasetCreateFromSampledColumn(double** sample_data, |
| 505 | int** sample_indices, |
| 506 | int32_t ncol, |
| 507 | const int* num_per_col, |
| 508 | int32_t num_sample_row, |
| 509 | int32_t num_total_row, |
| 510 | const char* parameters, |
| 511 | DatasetHandle* out) { |
| 512 | API_BEGIN(); |
| 513 | auto param = Config::Str2Map(parameters); |
| 514 | Config config; |
| 515 | config.Set(param); |
| 516 | if (config.num_threads > 0) { |
| 517 | omp_set_num_threads(config.num_threads); |
| 518 | } |
| 519 | DatasetLoader loader(config, nullptr, 1, nullptr); |
| 520 | *out = loader.CostructFromSampleData(sample_data, sample_indices, ncol, num_per_col, |
| 521 | num_sample_row, |
| 522 | static_cast<data_size_t>(num_total_row)); |
| 523 | API_END(); |
| 524 | } |
| 525 | |
| 526 | |
| 527 | int LGBM_DatasetCreateByReference(const DatasetHandle reference, |
nothing calls this directly
no test coverage detected