| 302 | LIGHTGBM_EXPORT ~Dataset(); |
| 303 | |
| 304 | LIGHTGBM_EXPORT bool CheckAlign(const Dataset& other) const { |
| 305 | if (num_features_ != other.num_features_) { |
| 306 | return false; |
| 307 | } |
| 308 | if (num_total_features_ != other.num_total_features_) { |
| 309 | return false; |
| 310 | } |
| 311 | if (label_idx_ != other.label_idx_) { |
| 312 | return false; |
| 313 | } |
| 314 | for (int i = 0; i < num_features_; ++i) { |
| 315 | if (!FeatureBinMapper(i)->CheckAlign(*(other.FeatureBinMapper(i)))) { |
| 316 | return false; |
| 317 | } |
| 318 | } |
| 319 | return true; |
| 320 | } |
| 321 | |
| 322 | inline void PushOneRow(int tid, data_size_t row_idx, const std::vector<double>& feature_values) { |
| 323 | if (is_finish_load_) { return; } |
nothing calls this directly
no test coverage detected