cs224u 自然语言推断:模型-2

cs224u 自然语言推断:模型-2 nli_02_models.ipynb

__author__ = "Christopher Potts"
__version__ = "CS224u, Stanford, Spring 2020"

模型包装器

这次的实验和Stanford Sentiment Treebank中使用的框架相同,使用sst.fit_classifier_with_crossvalidation,以LogisticRegression为超参数的交叉验证构建一个包装器,不确定什么参数将有利于NLI数据集,这个超参数查询是至关重要的。

def fit_softmax_with_crossvalidation(X, y):
    

猜你喜欢

转载自blog.csdn.net/duan_zhihua/article/details/107823855