def walk_transformer(walk, length):
    """
    Tranforming a given random walk to have skips.
    :param walk: Random walk as a list.
    :param length: Skip size.
    :return transformed_walk: Walk chunks for training.
    """
    transformed_walk = []
    for step in range(length+1):
        neighbors = [y for i, y in enumerate(walk[step:]) if i % length == 0]
        transformed_walk.append(neighbors)
    return transformed_walk