def decode_test_run(test_run):
    """
    Function to decode test_run name into sequence of training parameter values
    :param test_run:
    :return: patience, learning rate, minimal learning rate, anneal rate
    """
    x = test_run.split("lr.")
    patience = int(x[0][1:])
    lr = float(f"0.{x[1][:-1]}")
    y = x[2].split("a")
    mlr = float(f"0.{y[0]}")
    anneal_rate = float(f"0{y[1]}")
    print("Training parameters:\n"
          f"patience: {patience}\n"
          f"learning rate: {lr}\n"
          f"minimal learning rate: {mlr}\n"
          f"anneal rate: {anneal_rate}\n")
    return patience, lr, mlr, anneal_rate