| 51 | } |
| 52 | |
| 53 | void 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 | |
| 82 | bool NCatboostOptions::TPoolLoadParams::HavePairs() const { |
| 83 | return PairsFilePath.Inited() || TestPairsFilePath.Inited(); |
no test coverage detected