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

Method FillOrder

catboost/cuda/data/permutation.cpp:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <numeric>
6
7void NCatboostCuda::TDataPermutation::FillOrder(TVector<ui32>& order) const {
8 if (Index != IdentityPermutationId()) {
9 if (DataProvider->MetaInfo.HasGroupId && !DataProvider->ObjectsGrouping->IsTrivial()) {
10 GenerateQueryDocsOrder(GetSeed(), BlockSize, DataProvider->ObjectsGrouping->GetNonTrivialGroups(), &order);
11 } else {
12 Shuffle(GetSeed(), BlockSize, DataProvider->GetObjectCount(), &order);
13 }
14 } else {
15 order.resize(DataProvider->GetObjectCount());
16 std::iota(order.begin(), order.end(), 0);
17 }
18}
19
20void NCatboostCuda::TDataPermutation::FillGroupOrder(TVector<ui32>& groupOrder) const {
21 CB_ENSURE_INTERNAL(DataProvider->MetaInfo.HasGroupId, "FillGroupOrder supports only datasets with group ids");

Callers 8

BuildDataSetMethod · 0.80
TEstimatorsExecutorMethod · 0.80
BuildDataSetMethod · 0.80
CheckDataSetFunction · 0.80
CheckIndicesFunction · 0.80
TCpuTreeCtrHelperMethod · 0.80
FitMethod · 0.80

Calls 8

GenerateQueryDocsOrderFunction · 0.85
GetNonTrivialGroupsMethod · 0.80
ShuffleFunction · 0.70
IsTrivialMethod · 0.45
GetObjectCountMethod · 0.45
resizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 4

CheckDataSetFunction · 0.64
CheckIndicesFunction · 0.64
TCpuTreeCtrHelperMethod · 0.64