jiangxinyang227 / textClassifier

tensorflow implementation
1.14k stars 555 forks source link

测试问题 #11

Open Wangkai-NLP opened 5 years ago

Wangkai-NLP commented 5 years ago

您好,我是初学者,仔细看了您的代码,写的很全面,但是好像没有test(或eval)方法,那么我想在测试集上测试性能,该怎么做呢?谢谢!

jiangxinyang227 commented 5 years ago

eval是有的,在代码就已经实现了,代码中会将数据集分为训练集和验证集,要做预测的话需要加载模型, 你可以看下我的这篇文章https://www.cnblogs.com/jiangxinyang/p/10022216.html

Wangkai-NLP commented 5 years ago

好的,因为我是在做关系抽取,也是分类任务,所以借鉴下你的代码。评价方法不太一样,所以一时没看懂。我研究研究,非常感谢!

发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用


发件人: jiangxinyang227 notifications@github.com 发送时间: Wednesday, May 22, 2019 10:47:32 AM 收件人: jiangxinyang227/textClassifier 抄送: wangkai; Author 主题: Re: [jiangxinyang227/textClassifier] 测试问题 (#11)

eval是有的,在代码就已经实现了,代码中会将数据集分为训练集和验证集,要做预测的话需要加载模型, 你可以看下我的这篇文章https://www.cnblogs.com/jiangxinyang/p/10022216.html

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jiangxinyang227/textClassifier/issues/11?email_source=notifications&email_token=AK7BVBQ2Z4IGYJIBT6ONIDDPWSX4JA5CNFSM4HN74PUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV5XS2A#issuecomment-494631272, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK7BVBQXMVQ66DOMZIUPEJTPWSX4JANCNFSM4HN74PUA.