使用python fit,predict出现的错误
来源:互联网 发布:ec软件 编辑:程序博客网 时间:2024/06/05 16:40
错误信息:
C:\Python27\lib\site-packages\sklearn\utils\validation.py: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
DeprecationWarning
make your data from 1D to 2D
Just add:
[]
vec = [vec]
Reshape your data
vec = np.array(vec).reshape(1, -1)
阅读全文
0 0
- 使用python fit,predict出现的错误
- bl跳转指令使用错误导致编译出现错误--relocation truncated to fit: R_ARM_PC24 init_irq
- 用scikit-learn 训练SVM的例子, clf.fit() clf.predict() 的作用
- sklearn中,RandomForest、DecisionTree、cython(spliter、builder)三个层面的fit、predict
- <Opencv for Android 调试>加载XML模型,使用SVM.predict出现的NullPointerException问题
- libsvm2.88之“svm-predict”的使用
- python使用pip安装模块的时候出现ascii错误
- python下使用unrar出现错误的问题
- Python使用urllib2出现incompleteread错误
- 【python】在pycharm初次使用的时候出现错误:no python interpreter configured for the project
- 使用Ibatis,出现的错误
- 使用PopupWindow出现的错误
- 使用FragmentTabHost出现的错误!
- 使用SDCycleScrollvVew出现的错误
- 使用D2D出现的错误
- Felomeng翻译:libsvm2.88之“svm-predict”的使用
- python写递归出现的错误
- 【7】编译python时出现的错误
- innerHTML基础知识
- hdu 6085
- 【编程语言学习】C++ Primer 对constexpr 和常量表达式的讲解
- HashMap的实现原理
- C 一一 static和extern关键字详解
- 使用python fit,predict出现的错误
- 读取excel文件信息实例2
- 并发基本概念介绍
- python基础——函数编程
- javascript随机数
- Surrounded_Regions
- 混合云起航
- HDU5493 Queue(线段树)
- ubuntu安装redis及使用