def corpus_xdsd_scorer(estimator, x, y=None): if y: x = np.row_stack([x, y]) corpus = load_corpus(precompiled=True) x_formd = estimator.transform(x) return corpus_xdsd_score(x_formd, corpus)
def artist_scorer(estimator, x, y=None): if y: x = np.row_stack([x, y]) corpus = load_corpus(precompiled=True) x_formd = estimator.transform(x) return artist_cohesion_score(x_formd, corpus)