ValueError('You appear to be using a legacy multi-label data'
来源:互联网 发布:证券交易软件 编辑:程序博客网 时间:2024/05/17 23:54
使用sklearn时,遇到该问题,可能是因为scikit-learn版本过旧或者太新
pip install -U scikit-learn==0.16.1 就能解决
当然在0.17之后,已经不允许直接使用多类标分类
Direct support for sequence of sequences multilabel representation will be unavailable from version 0.17
而使用sklearn.preprocessing.MultiLabelBinarizer to convert to a label indicator representation.
例如
from sklearn.preprocessing import MultiLabelBinarizer
y_train = MultiLabelBinarizer().fit_transform(y_train)
y_test = MultiLabelBinarizer().fit_transform(y_test)
preds = MultiLabelBinarizer().fit_transform(preds)
0 0
- ValueError('You appear to be using a legacy multi-label data'
- git does not appear to be a git repository
- ValueError: astimezone() cannot be applied to a naive datetime
- when there appear "network Location Cannot be reached" as you add a computer or member server(especial 2000 server) to domain
- you appear to be running an x server please exit x before installing
- 无法进入桌面you appear to be running an x server please exit x before installing
- So you want to be a CIO
- You want to be a Graphics Programmer ...
- Slow performance occurs when you copy data to a TCP server by using a Windows Sockets API program
- Slow performance occurs when you copy data to a TCP server by using a Windows Sockets API program
- Legacy Data Transfer Using MicrosoftÒ Excel
- postgresql:pg_restore: [archiver] input file does not appear to be a valid archive
- GitHub# fatal: 'origin' does not appear to be a git repository
- 使用git,clone时报does not appear to be a git repository
- ABAP Using a Cursor to Read Data
- ubuntu安装nvida驱动时出现:you appear to be running an x server please exit x before installing
- 更新NVIDIA显卡的CUDA驱动出错,You appear to be running an X server; please exit X before
- Journey from a Python noob to a Kaggler on Python So, you want to become a data scientist or may be
- href="javascript:void(0);"、href="javascript:;"和href="#"
- ACCESS手工注入学习笔记
- ARM基础学习-异常中断处理
- glog
- [数据结构]线性结构——队列
- ValueError('You appear to be using a legacy multi-label data'
- Finder 无限未响应?彻底被打败了!
- PHP中常用的正则表达式函数【第一弹】
- 登陆错误的显示信息
- 推荐系统-基于PersonalRank推荐模型
- 3-palindrome java
- Linux X86 PS/2键盘驱动分析记录
- 学习java基础的心得感悟
- poj1170Shopping Offers(dp)