/** * @author hao.wei */ @Service public class MissingHandleBizImpl implements MissingHandleBiz { private static final Logger logger = LoggerFactory.getLogger(MissingHandleBizImpl.class); /** 缺失值用该属性的平均值填充*/ @Override public Instances missingValuesFilledWithAvg(Instances instances, String incompatible) { try { // 属性个数(列) int dim = instances.numAttributes(); // 实例个数(行) int num = instances.numInstances(); logger.info("开始将平均值填充入缺失值..."); double[] meanV = new double[dim]; for (
weka学习(三)缺失值处理
最新推荐文章于 2021-04-11 09:34:54 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)