分类预测:Feature shape mismatch, expected: 20, got 16
报错原因:模型要求输入的变量数量为20,但预测数据集只提供了16个解决方法:检查预测数据集的变量完整性
标签编码转换:cannot insert gender recode, already exists
报错原因:表格已经包含了待生成的变量名,本例中gender_recode这个变量名已经存在了解决方案:检查表格变量名,去除就得变量
聚类热图:only defined on a data frame with all numeric-alike variables
报错原因:选择分析的变量中存在个别非数值变量解决方法:删除这些非数值的变量
Lasso回归-泊松:negative responIses encountered: not permitted for Poisson family
报错原因:因变量可能存在负数,但泊松分布只支持正整数的因变量解决方法:检查因变量是否符合泊松分布要求








