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

Method PrepareForContinuation

catboost/private/libs/algo/learn_context.cpp:718–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718void TLearnProgress::PrepareForContinuation() {
719 InitTreesSize = SafeIntegerCast<ui32>(TreeStruct.size());
720 MetricsAndTimeHistory = TMetricsAndTimeLeftHistory();
721}
722
723void TLearnProgress::Save(IOutputStream* s) const {
724 CB_ENSURE_INTERNAL(IsFoldsAndApproxDataValid, "Attempt to save TLearnProgress data in inconsistent state");

Callers 1

TrainModelMethod · 0.80

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected