toMonitoringProblemType method

MonitoringProblemType toMonitoringProblemType()

Implementation

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