toAutoMLMetricEnum method
Implementation
AutoMLMetricEnum toAutoMLMetricEnum() {
switch (this) {
case 'Accuracy':
return AutoMLMetricEnum.accuracy;
case 'MSE':
return AutoMLMetricEnum.mse;
case 'F1':
return AutoMLMetricEnum.f1;
case 'F1macro':
return AutoMLMetricEnum.f1macro;
case 'AUC':
return AutoMLMetricEnum.auc;
}
throw Exception('$this is not known in enum AutoMLMetricEnum');
}