def ck_lm_series(datadir=None, align_to=20, labeled_only=False):
    ck_dataset = CKDataset(datadir)
    X_lst = []
    y_lst = []
    for item in ck_dataset.data:
        landmarks = [lm.flatten() for lm in item.landmarks]
        landmarks = interp_list(landmarks, align_to)
        lm_image = np.vstack(landmarks)
        X_lst.append(lm_image.flatten())
        y_lst.append(item.label)
    X = np.vstack(X_lst)
    y = np.array(y_lst)
    del ck_dataset
    if labeled_only:
        return X[y != -1], y[y != -1]
    else:
        return X, y
compute overlaps between sets.
dataset/ETHPy150Open dfdx/masque/masque/datasets.py/ck_lm_series--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_kamilah.py/_makeOverlap