| 95 | }; |
| 96 | |
| 97 | struct TQuantization { |
| 98 | TVector<float> Borders; |
| 99 | TMaybe<TDefaultQuantizedBin> DefaultQuantizedBin; |
| 100 | |
| 101 | public: |
| 102 | TQuantization() = default; |
| 103 | |
| 104 | explicit TQuantization( |
| 105 | TVector<float>&& borders, |
| 106 | TMaybe<TDefaultQuantizedBin> defaultQuantizedBin = Nothing()) |
| 107 | : Borders(std::move(borders)) |
| 108 | , DefaultQuantizedBin(defaultQuantizedBin) |
| 109 | {} |
| 110 | |
| 111 | bool operator==(const TQuantization& rhs) const { |
| 112 | return (Borders == rhs.Borders) && (DefaultQuantizedBin == rhs.DefaultQuantizedBin); |
| 113 | } |
| 114 | }; |
| 115 | |
| 116 | TQuantization BestSplit( |
| 117 | TFeatureValues&& features, |
no outgoing calls
no test coverage detected