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

Method ValidateLearn

catboost/private/libs/options/load_options.cpp:53–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void NCatboostOptions::TPoolLoadParams::ValidateLearn() const {
54 ColumnarPoolFormatParams.Validate();
55
56 CB_ENSURE(LearnSetPath.Inited(), "Error: provide learn dataset");
57 CB_ENSURE(CheckExists(LearnSetPath), "Error: features path '" << LearnSetPath << "' doesn't exist");
58 ValidatePoolParams(LearnSetPath, ColumnarPoolFormatParams);
59
60 if (PairsFilePath.Inited()) {
61 CB_ENSURE(CheckExists(PairsFilePath), "Error: pairs file '" << PairsFilePath << "' doesn't exist");
62 }
63
64 if (GraphFilePath.Inited()) {
65 CB_ENSURE(CheckExists(GraphFilePath), "Error: graph file '" << GraphFilePath << "' doesn't exist");
66 }
67
68
69 if (GroupWeightsFilePath.Inited()) {
70 CB_ENSURE(CheckExists(GroupWeightsFilePath), "Error: group weights file '" << GroupWeightsFilePath << "' doesn't exist");
71 }
72
73 if (TimestampsFilePath.Inited()) {
74 CB_ENSURE(CheckExists(TimestampsFilePath), "Error: timestamps file '" << TimestampsFilePath << "' doesn't exist");
75 }
76
77 if (BaselineFilePath.Inited()) {
78 CB_ENSURE(CheckExists(BaselineFilePath), "Error: baseline file '" << BaselineFilePath << "' doesn't exist");
79 }
80}
81
82bool NCatboostOptions::TPoolLoadParams::HavePairs() const {
83 return PairsFilePath.Inited() || TestPairsFilePath.Inited();

Callers 1

ReadTrainDatasetsFunction · 0.80

Calls 3

CheckExistsFunction · 0.85
ValidateMethod · 0.45
InitedMethod · 0.45

Tested by

no test coverage detected