Orange3如何重新应用预处理到新数据(Orange3 how to reapply preprocessing to new data)
有没有办法将训练数据集中的预处理重新应用到实验数据的新数据集,以便将转换后的数据提交给已经训练过的分类器?
Is there any way to reapply a preprocessment done in a training dataset to a new dataset of experimental data for submission of the transformed data to the already trained classifier?
最满意答案
预处理器修改训练数据集上的domain 。 如果你想对测试(实验)数据应用相同的转换,你显然必须将它转换到同一个域,就像Orange的内置预测器似乎那样:
train = preprocess(train) test = Table(train.domain, test)The preprocessor modifies the domain on the training data set. If you want to apply the same transformations on the testing (experimental) data, you apparently have to cast it into the same domain, as the Orange's built-in predictors seem to do:
train = preprocess(train) test = Table(train.domain, test)更多推荐
发布评论