toMLModelType method

MLModelType toMLModelType()

Implementation

MLModelType toMLModelType() {
  switch (this) {
    case 'REGRESSION':
      return MLModelType.regression;
    case 'BINARY':
      return MLModelType.binary;
    case 'MULTICLASS':
      return MLModelType.multiclass;
  }
  throw Exception('$this is not known in enum MLModelType');
}