【发布时间】:2018-07-27 13:48:56
【问题描述】:
我在 MATLAB 2015b 中使用 fitctree 构建了一个简单的分类树。我现在想开始使用它对新数据(tabletest)进行预测。 'Predict' 给了我一个错误,我不确定如何在新数据上使用 kfoldPredict。
代码:
predict(Mdl10feat,tabletest)
错误:
Undefined function 'predict' for input arguments of type
'classreg.learning.partition.ClassificationPartitionedModel'.
分类器:
Mdl10feat =
classreg.learning.partition.ClassificationPartitionedModel
CrossValidatedModel: 'Tree'
PredictorNames: {'fermin' 'MAJ' 'SOL' 'ECC' 'ORI' 'W' 'H' 'CIRC1' 'EQU' 'CONT'}
ResponseName: 'classROI'
NumObservations: 376810
KFold: 10
Partition: [1x1 cvpartition]
ClassNames: {'Hit' 'Miss'}
ScoreTransform: 'none'
输入:
tabletest =
fermin MAJ SOL ECC ORI W H CIRC1 EQU CONT
______ ______ _______ _______ ______ ______ ______ ______ ______ ____
29.748 46.342 0.98621 0.76677 87.506 27.307 43.691 1.0426 36.847 149
我在这里做错了什么?
【问题讨论】:
标签: matlab label classification decision-tree predict