| 759 | } |
| 760 | |
| 761 | void 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 | |
| 798 | ui32 TLearnProgress::GetCurrentTrainingIterationCount() const { |
| 799 | return SafeIntegerCast<ui32>(TreeStruct.size()) - InitTreesSize; |
nothing calls this directly
no test coverage detected