Пример #1
0
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)
Пример #2
0
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)