排序
COX回归PH检验:Error in gzfile(file,”rb”): cannot open the connection
错误原因:节点连接错误,只能连接在多因素COX回归后面解决方法:使用多因素COX回归连接这个节点
Error in eval(family$initialize) : y值必需满足0 <= y <= 1
【报错原因】 变量选择有问题,不可以是字符串,必须是0和1的二分类变量 【解决方法】 更换因变量,把因变量转为0,1二分类
预测器SE:Error: Measure ’classif.acc‘ incompatible with task type ‘sury‘
错误原因: 机器学习生存模型没有ACC的评估方法,只有分类模型才有 解决方法: 修改模型类型,以及评估方法
数据连接:Unable to allocate XXX GiB for an array with shape (XXXXX) and data type float64.
错误原因:内存不足,在数据连接中m:m的模型内存消耗很大解决方法:(1)增加计算机内存(2)改用1:m或者1:1的模式匹配
分类预测:‘DecisionTreeRegressor’ object has no attribute ‘predict proba’
错误原因:回归模型不能使用分类预测解决方法:把分类预测节点改成回归预测节点
3 nodes produced errors;, first error: matrix multiplication: incompatible matrix dimensions:5595×2 and 4×1
【报错原因】 模型不拟合 【解决方法】 换变量,数据,模型数量
Error in gbmt::gbmt(x.names = var_independent, unit = var_dependent, time = var_time, :Unit ‘5’ has duplicated time points
【报错原因】 数据问题,有重复值 【解决方法】 更换数据或变量
Error in ifelse(decision_type %in% c(“>=”, “>”), ret.second(split_index), :Unknown decision_type
【报错原因】 对于lightgbm 数据存在数值类别,变成字符类别 【解决方法】 https://github.com/ModelOriented/treeshap/issues/28
Error in contrasts<-(*tmp*, value = contrasts.arg[[nn]]) :对比只适用于因子
【报错原因】 链接的回归模型自变量有分类变量 【解决方法】 去除链接模型自变量的分类变量
Error in getActiveRowSpan(estimates): Could not identify rows with actual data
【报错原因】 显示数值的行存在NA 【解决方法】 删除对应的分组
Error: You should have at least two distinct break values. Value cannot be null. (Parameter ‘s’)
【报错原因】模型拟合问题【解决方法】更换模型或变量
Error in gbm.unify(model, data):Models built on data with categorical features are not supported – please encode them before training.
【报错原因】 类别数据需要encode 【解决方法】 前面链接 独热编码+标签转换编码+转换变量类型 进行encode
Error in confusionMatrix,default(as.factor(y pred label)reference = as.factorly label): The data must contain some levels that overlap the reference…
【报错原因】 DCA绘图里:y_pred_label <- as.numeric(y_pred_score > thresh)cm <- confusionMatrix(as.factor(y_pred_label), reference = as.factor(y_label))$table 【解决方法】 ...
Error in gbm.fit(x = x, y = y, offset = offset, distribution = distribution, :The data set is too small or the subsampling rate is too large: nTrain * bag.fraction <= n.minobsinnode
【报错原因】 数据量太小或者Minnodesize太大 【解决方法】 增大数据量,或者输入小一点的minnodesize
Error in ranger::ranger(dependent.variable.name = task$target_names, data = task$data(), :User interrupt or internal error.
【解决方法】 增大内存或者减少参数搜索空间mtry不能大于特征数量
Error in imputeTS::na_ma(v, k = k, weighting = “linear”) :At least 2 non-NA data points required in the time series to apply na_ma.
【报错原因】 ID id筛选之后数据没了 【解决方法】 更换数据或变量
Eror in fiter(X,Y,ofset = ofs,penalty,.matix = penalty.matrix,: NA/NaN/nfin foreign functiocall (arg 1).
【报错原因】 数据问题,数据量太少,概率一致,算不出来 【解决方法】 增加预测数据,或者repeat
Error in solve.default(SKK) :system is computationally singular: reciprocal condition number = 2.16588e-21
【报错原因】 数据问题算不出 【解决方法】 更改协整成分
Error in num point[[ind pred]]: attempt to select less thanone element in get1index.
【报错原因】 节点数不支持计算 【解决方法】 更改节点数