通过阅读类似的问题,我知道问题是yhat.logisticReg不是2个水平的因子,而training.prepped$TARGET_FLAG是。我假设这个问题可以通过改变我的模型或预测来解决,这样yhat.logisticReg就是两个水平的因子。我该怎么做呢?., family = binomial())
yhat.logist
我是第一次使用R(在R演播室),所以为任何愚蠢的错误道歉。Error: `data` and `reference` should be factors with the same levels.
4. stop("`data` and `reference` should be factors with the same levels数据(我的Y.pr)变