![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
文章平均质量分 51
pingouinkee
这个作者很懒,什么都没留下…
展开
-
ValueError: Classification metrics can‘t handle a mix of binary and continuous targets
背景在训练模型时想看一下混淆矩阵的形式,使用的是sklearn中的confusion_matrix函数,具体使用方式见官网:sklearn.metrics.confusion_matrix。报错conf_m = confusion_matrix(Ytest_vector, predtest)ValueError: Classification metrics can’t handle a mix of binary and continuous targets原因分别打印 Ytest_vect原创 2021-02-27 01:23:59 · 8238 阅读 · 1 评论 -
机器学习-Intro
开坑前言本系列笔记基于《An Introduction to Statistical Learning with Applications in R》和其中文翻译版《统计学习导论》。概述第二章 K-nearest neighbor classfier第三章 线性回归(是所有回归方法的基础)第四章 Logistic Regression(逻辑回归) 和 Linear discriminany analysis(线性判别分析)第五章 交叉验证 和 Bootstrap (自助法)第六章 stepwi原创 2021-02-08 22:08:58 · 99 阅读 · 0 评论