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

Method BootstrappedWeights

catboost/cuda/gpu_data/bootstrap.h:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 TCudaBuffer<float, TMapping> BootstrappedWeights(TGpuAwareRandom& random,
85 TCudaBuffer<float, TMapping>* derPtr=nullptr) {
86 TCudaBuffer<float, TMapping> weights = TCudaBuffer<float, TMapping>::Create(derPtr->GetMapping());
87 if (Config.GetBootstrapType() != EBootstrapType::MVS) {
88 FillBuffer(weights, 1.0f);
89 }
90 Bootstrap(Config, random, weights, Lambda, derPtr);
91 return weights;
92 }
93
94 void BootstrapAndFilter(TGpuAwareRandom& random,
95 TCudaBuffer<float, TMapping>& der,

Callers 1

FitMethod · 0.80

Calls 4

BootstrapFunction · 0.85
GetMappingMethod · 0.80
GetBootstrapTypeMethod · 0.80
CreateFunction · 0.50

Tested by

no test coverage detected