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

Function SetTimestamps

catboost/libs/data/loader.cpp:245–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 void SetTimestamps(
246 const TPathWithScheme& timestampsPath,
247 ui32 objectCount,
248 TDatasetSubset loadSubset,
249 IDatasetVisitor* visitor
250 ) {
251 DumpMemUsage("After data read");
252 if (timestampsPath.Inited()) {
253 auto maybeGroupIds = visitor->GetGroupIds();
254 CB_ENSURE(maybeGroupIds, "Cannot load group timestamps for a dataset without groups");
255 TVector<ui64> groupTimestamps = ReadGroupTimestamps(
256 timestampsPath,
257 *maybeGroupIds,
258 objectCount,
259 loadSubset
260 );
261 visitor->SetTimestamps(std::move(groupTimestamps));
262 }
263 }
264
265 TVector<TString> LoadFeatureNames(const TPathWithScheme& featureNamesPath) {
266 TVector<TString> featureNames;

Callers 2

DoMethod · 0.85
FinalizeBuilderMethod · 0.85

Calls 6

DumpMemUsageFunction · 0.85
ReadGroupTimestampsFunction · 0.85
moveFunction · 0.50
InitedMethod · 0.45
GetGroupIdsMethod · 0.45
SetTimestampsMethod · 0.45

Tested by

no test coverage detected