Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经成功地训练了一个分类器(bayesnet)并构建了一个测试集(ARFF 格式),它有一个实例,一个缺失值。
Evaluation eTest = new Evaluation(trainingInstance); eTest.evaluateModel(bayes_Classifier, testInstance);
如何访问缺失值的预测?我已经使用 GUI 测试了两个 ARFF 结构(培训和测试)。他们工作。我根本不知道,如何访问预测值......
您想使用eTest.evaluateModelOnce()which 将返回一个 double 值,即对 single 的预测testInstance。该evaluateModel()方法适用于多个实例。
eTest.evaluateModelOnce()
testInstance
evaluateModel()