Better error message about cross-validation options in distributed training on CPU
@@ -1019,6 +1019,11 @@ void TrainModel(
"Multiple eval sets not supported for GPU"
);
+ CB_ENSURE(
+ !(loadOptions.CvParams.FoldCount != 0 && catBoostOptions.GetTaskType() == ETaskType::CPU && catBoostOptions.SystemOptions->IsMaster()),
+ "Distributed training on CPU does not support test and train datasests specified by cross validation options"
+ );
+
const auto evalOutputFileName = outputOptions.CreateEvalFullPath();
const auto fstrRegularFileName = outputOptions.CreateFstrRegularFullPath();
