_catboost.CatBoostError: C:/Program Files (x86)/Go Agent/pipelines/BuildMaster/catboost.git/catboost/libs/data/model_dataset_compatibility.cpp:81: At position 0 should be feature with name featureA (found featureB)

目录

_catboost.CatBoostError: C:/Program Files (x86)/Go Agent/pipelines/BuildMaster/catboost.git/catboost/libs/data/model_dataset_compatibility.cpp:81: At position 0 should be feature with name featureA (found featureB)

问题:

解决:

完整错误:


问题:

#模型保存

# Import pickle Package
import pickle# Save the Modle to file in the current working directorypkl_name = "break_model1.pkl"  with open(pkl_name, 'wb') as file:  pickle.dump(cat_model, file)

#模型加载预测

# Load the Model back from file
with open(pkl_name, 'rb') as file:  Pickled_Model = pickle.load(file)Pickled_ModelPickled_Model.predict_proba(features_test)[:,1]

解决:

如下示例:犯了三个错误:

第一,特征的顺序变了;A特征跑到了B特征后面;

第二,多了一个模型训练没有见过的特征E;

第三,少了一个模型训练缺少的特征C

#模型训练的特征列表;
feature_list = [featureA、featureB、featureC、featureD]#模型预测的特征列表;
feature_list = [featureB、featureA、featureE、featureD]#正解
feature_list = [featureA、featureB、featureC、featureD]
input_data = data[feature_list]

完整错误:

_catboost.CatBoostError: C:/Program Files (x86)/Go Agent/pipelines/BuildMaster/catboost.git/catboost/libs/data/model_dataset_compatibility.cpp:81: At position 0 should be feature with name featureA (found featureB)

_catboost.CatBoostError: C:/Program Files (x86)/Go Agent/pipelines/BuildMaster/catboost.git/catboost相关推荐

  1. 未找到导入的项目“C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCT

    在安装CUDA11.0时遇到如下: 未找到导入的项目"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Commo ...

  2. error: command ‘D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe‘ f

    跟着知乎"略略略"大佬改建YOLOv5的旋转目标检测项目. 在python项目中使用C++文件,首先安装了swig,将polyiou.i文件编译生成了polyiou.cpp文件,然 ...

  3. 这三个文件在 C:\Program Files (x86)\Microsoft Office\root\Office16 下怎么会是符号链接?

    这三个文件在 C:\Program Files (x86)\Microsoft Office\root\Office16 下怎么会是符号链接? "C:\Program Files\Commo ...

  4. 计算机c盘program,电脑c盘program files(x86)文件夹可以删除吗

    在给电脑安装完系统之后,由于安装的系统中总是会自带一些用户不需要使用到的文件或者程序,我们为了能够保证系统运行的流畅,通常都会将其进行删除,但是最近有许多用户对于c盘program files(x86 ...

  5. Python-- error: [WinError 3] 系统找不到指定的路径。: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC

    error: [WinError 3] 系统找不到指定的路径.: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\Platfor ...

  6. error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\link.exe' failed wit

    安装执行pip install rjsmin时出现这样的错误: 查了好久,通过下面的方法解决了: 首先,进入到 C:\Program Files (x86)\Windows Kits\8.1\bin\ ...

  7. Windows下的Program Files (x86)文件夹是干什么的?

    今天在微博上看到有人问这个问题.在装好64位的Windows之后,能在系统盘(通常是C盘)下看到这么一个文件夹,它比我们都知道的Program Files文件夹多出来个"(x86)" ...

  8. win10里C盘的Program Files和 Program Files(x86)的区别

    名词解释 Program Files:是64位软件安装目录. Program Files(x86):是32位软件安装目录. 区别 windows系统分为 32位和64位 64位 软件通常安装在 Pro ...

  9. 成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr

    成功解决LINK : fatal error LNK1181: 无法打开输入文件"avdevice.lib" error: command 'D:\\Program Files ( ...

最新文章

  1. 0b3398php,思想道德修养与法律基础(九江职业技术学院)知到2020题目及答案
  2. C#怎么测试静态方法?我给出了2种方案
  3. java canvas 缩放图片_详解如何用HTML5 Canvas API控制图片的缩放变换
  4. B. The Cake Is a Lie
  5. 【软件工程】用于IS规划的SWOT方法
  6. P5703 【深基2.例5】苹果采购(scratch实现)
  7. 4-2 VGGNet
  8. 对多用户分时系统最重要_互联网搜索引擎:让你的产品在最显眼的位置摆摊
  9. 设计灵感|简单的文字和图片排版如何出彩?
  10. k8s核心技术-Helm(chart模板的使用上)---K8S_Google工作笔记0048
  11. Gson解析数组和list容器
  12. SpringBoot中级篇-SpringBatch+Oracle配置
  13. 【机器人学】机器人运动学基础
  14. 新托业模拟考试感言—了解一下参加过托业考试前辈们的经验03
  15. python二进制转十进制函数_python基础教程之python基础教程之python进制转换(二进制、十进制...
  16. google Chrome 浏览器升级更新了来源策略,导致不同域名来源页面信息【Referer】只有域名信息
  17. Android各版本兼容性适配
  18. python批量将PPT导出成图片集
  19. 看过无数总结,经历无数实践,这才是顶级IT公司的架构设计
  20. Unity游戏开发:场景切换的实现

热门文章

  1. QT OpenCV Linux
  2. 浏览器事件监听的方法
  3. python tkinter画笑脸_Python3 Tkinter基础 Canvas create_line 画实线与虚线
  4. 最新!3D目标检测论文汇总(多模态融合)
  5. NeurIPS 2021 | 视觉Transformer和CNN看到的特征是相同的吗?谷歌大脑新作
  6. 计算机视觉三维重建的几何基础:坐标系与关键矩阵(基础矩阵、本质矩阵、单应矩阵)...
  7. 总结|深度学习实现缺陷检测
  8. docker 容器基本的操作
  9. IOS中Cell自定义
  10. RDKit | 分子的多种构象