DS 310 - Machine Learning
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了DS 310 - Machine Learning,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1687字,纯文字阅读大概需要3分钟。
内容图文
Lab Assignment 2
Vasant Honavar
DS 310 - Machine Learning
Available: Nov 4, 2019
Nov 11, 2019
In all of the following exercises, if there is a need for a random seed, set it to 1234. Using
different sklearn libraries are permitted as long as usage is well-understood and explained in
the code. In case you would need to interpret your results, do so in your Ipython Notebook
by changing the cell type and writing your interpretation immediately below the code and
its result so that the interpretation can be matched with the result and the code. Submit a
single Ipython Notebook in which all of the answers are organized in a way that can be run
and evaluated.
1. Random forest (RF). Import the Breast Cancer data set from sklearn. Train and
evaluate using 5-fold cross-validation, a Random Forest Classifier from the ensemble
library of sklearn using 100 trees. Report the following:
(a) The average Accuracy, Sensitivity, Specificity, and AUC across all 5 runs of the
cross-validation.
(b) Report the average feature importance score for each feature across all 5 runs of
the cross-validation.
2. Multinomial Naive Bayes Classifier. Import the 20 News Groups data set from
sklearn. Preprocess the news articles to obtain the bag of words representation of the
data using the sklearn library functions. See sklearn tutorials on text analytics for
documentation. Train and evaluate a Multinomial Naive Bayes classifier from sklearn
using 5-fold cross-validation.
Report the average Accuracy, Sensitivity, Specificity, and AUC across all 5 runs of the
cross-validation.
因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
微信:codehelp
原文:https://www.cnblogs.com/welpython2/p/11822194.html
内容总结
以上是互联网集市为您收集整理的DS 310 - Machine Learning全部内容,希望文章能够帮你解决DS 310 - Machine Learning所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。