使用包DMwR的SOMTE函数报错
Error in factor(newCases[, a], levels = 1:nlevels(data[, a]), labels = levels(data[, :
invalid ‘labels’; length 0 should be 1 or 2
此外: There were 21 warnings (use warnings() to see them)
是因为自己的文件类型不是因子或者数字
是这种类型所以在用那个函数之前要变换
hyper V 1 = a s . f a c t o r ( h y p e r V1=as.factor(hyper V1=as.factor(hyperV1)
hyper V 2 = a s . f a c t o r ( h y p e r V2=as.factor(hyper V2=as.factor(hyperV2)
hyper V 3 = a s . f a c t o r ( h y p e r V3=as.factor(hyper V3=as.factor(hyperV3)
hyper V 4 = a s . f a c t o r ( h y p e r V4=as.factor(hyper V4=as.factor(hyperV4)
hyper V 5 = a s . f a c t o r ( h y p e r V5=as.factor(hyper V5=as.factor(hyperV5)
hyper