原因:特征为factor的列有空值。 查看空值列: levels(train$Embarked) 解决方法: 修改空值列为“missing” levels(train$Embarked)[1] = "missing" 参考: http://www.mzan.com/article/22803310-c5-0-decision-tree-c50-code-called-exit-with-value-1.shtml