toAlgorithm method

Algorithm toAlgorithm()

Implementation

Algorithm toAlgorithm() {
  switch (this) {
    case 'sgd':
      return Algorithm.sgd;
  }
  throw Exception('$this is not known in enum Algorithm');
}