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

Method Load

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

Source from the content-addressed store, hash-verified

759}
760
761void TLearnProgress::Load(IInputStream* s) {
762 ::Load(s, SerializedTrainParams);
763 ::Load(s, EnableSaveLoadApprox);
764 if (EnableSaveLoadApprox) {
765 ui64 foldCount;
766 ::Load(s, foldCount);
767 Folds.resize(foldCount);
768 for (ui64 i = 0; i < foldCount; ++i) {
769 Folds[i].LoadApproxes(s);
770 }
771 AveragingFold.LoadApproxes(s);
772 ::Load(s, AvrgApprox);
773 }
774 ::LoadMany(
775 s,
776 TestApprox,
777 BestTestApprox,
778 CatFeatures,
779 FloatFeatures,
780 ApproxDimension,
781 TreeStruct,
782 TreeStats,
783 LeafValues,
784 ModelShrinkHistory,
785 InitTreesSize,
786 MetricsAndTimeHistory,
787 UsedCtrSplits,
788 LearnAndTestQuantizedFeaturesCheckSum,
789 SeparateInitModelTreesSize,
790 SeparateInitModelCheckSum,
791 Rand,
792 StartingApprox,
793 UsedFeatures,
794 UsedFeaturesPerObject
795 );
796}
797
798ui32 TLearnProgress::GetCurrentTrainingIterationCount() const {
799 return SafeIntegerCast<ui32>(TreeStruct.size()) - InitTreesSize;

Callers

nothing calls this directly

Calls 4

LoadManyFunction · 0.85
LoadApproxesMethod · 0.80
LoadFunction · 0.70
resizeMethod · 0.45

Tested by

no test coverage detected