| 1385 | } |
| 1386 | |
| 1387 | TFeatureBin Split() { |
| 1388 | if (!CanSplit()) { |
| 1389 | throw yexception() << "Can't add new split"; |
| 1390 | } |
| 1391 | TFeatureBin left = TFeatureBin(BinStart, BestSplit, FeaturesStart); |
| 1392 | BinStart = BestSplit; |
| 1393 | UpdateBestSplitProperties(); |
| 1394 | return left; |
| 1395 | } |
| 1396 | |
| 1397 | private: |
| 1398 | double CalcSplitScore(ui32 splitPos) const { |
no test coverage detected