惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
IT之家
IT之家
D
DataBreaches.Net
Y
Y Combinator Blog
B
Blog RSS Feed
F
Fortinet All Blogs
GbyAI
GbyAI
V
Visual Studio Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
美团技术团队
L
LangChain Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog

博客园 - 扬中源

解决Avalonia.Markup.Xaml.XamlLoadException:“No precompiled XAML found for _xxxx.App, make sure to specify x:Class and include your XAML file as AvaloniaResource” vs2022 android模拟器闪退 VS2022 C# grpc遇到的问题 在Avalonia中,如何移除高度的值,使其为NaN 用bat批处理,winrar备份文件夹并排除特定子文件夹 用完我的风扇终于不吵了。 Avalonia跨平台嵌入浏览器的方法 Excel把一列数据变两列,带条件分组的行变列 ModuleNotFoundError: No module named 'yellowbrick.features.importances' 动手学深度学习MXNet配置 用Goaccess对Nginx进行性能监控windows版 只能判断文件图片类型,并修改文件名 微信电脑版提取微信小程序中的音频 NFC手机制作备用门禁卡 win7有些电脑form布局发生变化 微信小程序wepy textbox根据内容自动调整高度 Oracle连接错误解决办法 cef chromium相关
yellowbrick中ClassificationReport多分类图标一行数据异常全为0
扬中源 · 2023-12-02 · via 博客园 - 扬中源

from yellowbrick.classifier import ClassificationReport
visualizer = ClassificationReport(model, support=True)
visualizer.fit(X_train_std, Y_train)# 拟合visualizer
visualizer.score(X_test_std, Y_test)# 评价模型在训练集上效果
visualizer.show()

yellowbrick中ClassificationReport多分类图标一行数据异常全为0,可能是分类标签的问题。

y标签如果是3,1,0就会出现分类为3的整行数据全为0,把标签3全部替换为2即正常显示

y=y.str.replace('3', '2')