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

Method Load

catboost/private/libs/options/output_file_options.cpp:286–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void NCatboostOptions::TOutputFilesOptions::Load(const NJson::TJsonValue& options) {
287 CheckedLoad(
288 options,
289 &TrainDir, &Name, &JsonLogPath, &ProfileLogPath, &LearnErrorLogPath,
290 &TestErrorLogPath, &TimeLeftLog, &ResultModelPath, &SnapshotPath, &ModelFormats,
291 &SaveSnapshotFlag, &AllowWriteFilesFlag, &FinalCtrComputationMode, &FinalFeatureCalcerComputationMode,
292 &UseBestModel, &BestModelMinTrees, &SnapshotSaveIntervalSeconds, &EvalFileName, &OutputColumns,
293 &FstrRegularFileName, &FstrInternalFileName, &FstrType, &TrainingOptionsFileName, &MetricPeriod,
294 &VerbosePeriod, &PredictionTypes, &OutputBordersFileName, &RocOutputPath
295 );
296 if (!VerbosePeriod.IsSet() || VerbosePeriod.Get() == 1) {
297 VerbosePeriod.Set(MetricPeriod.Get());
298 }
299 Validate();
300}
301
302void NCatboostOptions::TOutputFilesOptions::Save(NJson::TJsonValue* options) const {
303 SaveFields(

Callers

nothing calls this directly

Calls 5

CheckedLoadFunction · 0.85
ValidateFunction · 0.50
IsSetMethod · 0.45
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected