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

Function CreateCompressedSplit

catboost/cuda/gpu_data/splitter.h:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139template <class TDataSet,
140 class TMapping>
141inline void CreateCompressedSplit(const TDataSet& dataSet,
142 const NCudaLib::TDistributedObject<TCFeature>& feature,
143 ui32 bin,
144 TCudaBuffer<ui64, TMapping>& bits,
145 const TCudaBuffer<const ui32, TMapping>* readIndices = nullptr,
146 ui32 stream = 0) {
147 using TKernel = NKernelHost::TWriteCompressedSplitKernel;
148
149 LaunchKernels<TKernel>(bits.NonEmptyDevices(), stream, feature, bin,
150 dataSet.GetCompressedIndex(),
151 dataSet.GetSampleCount(),
152 bits,
153 readIndices);
154}
155
156template <class TMapping, class TFloat>
157inline void CreateCompressedSplitFloat(const TCudaBuffer<TFloat, TMapping>& feature, float border,

Callers 2

UpdateBestSplitMethod · 0.85

Calls 2

GetSampleCountMethod · 0.80
NonEmptyDevicesMethod · 0.45

Tested by

no test coverage detected