(split)
return split_enum
Returns the Enum value corresponding to the given split.

  Args:
    split: A string, one of TRAIN_SPLIT, VALID_SPLIT, TEST_SPLIT.

  Raises:
    UnexpectedSplitError: split not TRAIN_SPLIT, VALID_SPLIT, or TEST_SPLIT.
Returns the Enum value corresponding to the given split.
Returns the Enum value corresponding to the given split .
def get_split_enum(split):
  """Returns the Enum value corresponding to the given split.

  Args:
    split: A string, one of TRAIN_SPLIT, VALID_SPLIT, TEST_SPLIT.

  Raises:
    UnexpectedSplitError: split not TRAIN_SPLIT, VALID_SPLIT, or TEST_SPLIT.
  """
  # Get the int representing the chosen split.
  if split == TRAIN_SPLIT:
    split_enum = learning_spec.Split.TRAIN
  elif split == VALID_SPLIT:
    split_enum = learning_spec.Split.VALID
  elif split == TEST_SPLIT:
    split_enum = learning_spec.Split.TEST
  else:
    raise UnexpectedSplitError(split)
  return split_enum
def get_split_enum ( split ) : # Get the int representing the chosen split. if split == TRAIN_SPLIT : split_enum = learning_spec . Split . TRAIN elif split == VALID_SPLIT : split_enum = learning_spec . Split . VALID elif split == TEST_SPLIT : split_enum = learning_spec . Split . TEST else : raise UnexpectedSplitError ( split ) return split_enum