No module named ‘sklearn.metrics.ranking‘ 解决方法

错误代码

from sklearn.metrics.classification import *
from sklearn.metrics.ranking import *

错误原因

sklearn这个文件夹下的_classification和_ranking前面有下划线!

解决方法

第一步:找到sklearn位置,可以打开命令行输入 pip show sklearn,找到安装位置。

 第二步:进入sklearn的metrics这个文件夹,可以看到_classification和_ranking这两个文件前面是有 _ 的

第三步:把代码中加上_即可

from sklearn.metrics._classification import *
from sklearn.metrics._ranking import *

  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Project tracking systems, test and build tools, source control, continuous integration, and other built-in parts of the software development lifecycle generate a wealth of data that can be used to track and improve the quality and performance of products, processes, and teams. Although the iterative nature of Agile development is perfect for data-driven continuous improvement, the collection, analysis, and application of meaningful metrics often fades in favor of subjective measures that offer less insight into the real challenges of making better software. Agile Metrics in Action: Measuring and enhancing the performance of Agile teams is a practical book that shows how to take the data already being generated to make teams, processes, and products better. It points out which metrics to use to objectively measure performance and what data really counts, along with where to find it, how to get it, and how to analyze it. The book also shows how all team members can publish their own metrics through dashboards and radiators, taking charge of communicating performance and individual accountability. Along the way, it offers practical data analysis techniques, including a few emerging Big Data practices. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. Table of Contents Part 1 Measuring agile teams Chapter 1 Measuring agile performance Chapter 2 Observing a live project Part 2 Collecting and analyzing your team’s data Chapter 3 Trends and data from project-tracking systems Chapter 4 Trends and data from source control Chapter 5 Trends and data from CI and deployment servers Chapter 6 Data from your production systems Part 3 Applying metrics to your teams, processes, and software Chapter 7 Working with the data you’re collecting: the sum of the parts Chapter 8 Measuring the technical quality of your software Chapter 9 Publishing metrics Chapter 10 Measuring your team against the agile principles Appendix A DIY analytics using ELK Appendix B Collecting data from source systems with Grails

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值