toProblemType method
Implementation
ProblemType toProblemType() {
switch (this) {
case 'BinaryClassification':
return ProblemType.binaryClassification;
case 'MulticlassClassification':
return ProblemType.multiclassClassification;
case 'Regression':
return ProblemType.regression;
}
throw Exception('$this is not known in enum ProblemType');
}