def structured_drop(data, p, modality_map):
    for i in range(len(data)):
        for time in range(len(data[i])):
            if (np.random.random_sample() < p):
                data[i][time] = np.zeros(data[i][time].shape)
    return data
def structured_drop(data, p, modality_map):
    for i in range(len(data)):
        for time in range(len(data[i])):
            if (np.random.random_sample() < p):
                data[i][time] = np.zeros(data[i][time].shape)
    return data