MCPcopy Create free account
hub / github.com/catboost/catboost / TQuantization

Class TQuantization

library/cpp/grid_creator/binarization.h:97–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 2

BestSplitMethod · 0.85
SetBordersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected