discontinuedPackage aws_machinelearning_api has been discontinued and replaced by aws_client.

toAlgorithm method

Algorithm toAlgorithm()

Implementation

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