copyproblem.py
def load_split(data_dir=DEFAULT_DATA_DIR, delay=100, num_possible_symbols=10, val=True):
  """ Load a Copy Problem train, test split.

  Args:
    data_dir: A string. The data directory.
    delay: An integer.
    num_possible_symbols: An integer.
    val: A boolean. If true, return the validation set as the test set.

  Returns:
    A tuple, `(train_inputs, train_targets, test_inputs, test_targets)`.
    Each is a 2-D int16 array with shape
    `[num_examples, delay/10 + delay + delay/10]`.
  """
  outs = load(data_dir, delay, num_possible_symbols)
  train_inputs, train_targets, val_inputs, val_targets, test_inputs, test_targets = outs
  if val:
    test_inputs = val_inputs
    test_targets = val_targets
  return train_inputs, train_targets, test_inputs, test_targets
 Load a Copy Problem train, test split.

  Args:
    data_dir: A string. The data directory.
    delay: An integer.
    num_possible_symbols: An integer.
    val: A boolean. If true, return the validation set as the test set.

  Returns:
    A tuple, `(train_inputs, train_targets, test_inputs, test_targets)`.
    Each is a 2-D int16 array with shape
    `[num_examples, delay/10 + delay + delay/10]`.
  
Load a Copy Problem train, test split.
Load a Copy Problem train test split .
def load_split(data_dir=DEFAULT_DATA_DIR, delay=100, num_possible_symbols=10, val=True):
  outs = load(data_dir, delay, num_possible_symbols)
  train_inputs, train_targets, val_inputs, val_targets, test_inputs, test_targets = outs
  if val:
    test_inputs = val_inputs
    test_targets = val_targets
  return train_inputs, train_targets, test_inputs, test_targets
def load_split ( data_dir = DEFAULT_DATA_DIR , delay = 100 , num_possible_symbols = 10 , val = True ) : outs = load ( data_dir , delay , num_possible_symbols ) train_inputs , train_targets , val_inputs , val_targets , test_inputs , test_targets = outs if val : test_inputs = val_inputs test_targets = val_targets return train_inputs , train_targets , test_inputs , test_targets
Load a Copy Problem train, test split.
Load a Copy Problem train test split .
""" Load a Copy Problem train, test split.

  Args:
    data_dir: A string. The data directory.
    delay: An integer.
    num_possible_symbols: An integer.
    val: A boolean. If true, return the validation set as the test set.

  Returns:
    A tuple, `(train_inputs, train_targets, test_inputs, test_targets)`.
    Each is a 2-D int16 array with shape
    `[num_examples, delay/10 + delay + delay/10]`.
  """
A tuple, `(train_inputs, train_targets, test_inputs, test_targets)`.
Each is a 2-D int16 array with shape
`[num_examples, delay/10 + delay + delay/10]`.
A tuple ` ( train_inputs train_targets test_inputs test_targets ) ` . Each is a 2 - D int16 array with shape ` [ num_examples delay / 10 + delay + delay / 10 ] ` .
data_dir
A string. The data directory.
A string . The data directory .
delay
None
num_possible_symbols
None
val
A boolean. If true, return the validation set as the test set.
A boolean . If true return the validation set as the test set .