Lab Assignment 2Vasant HonavarDS 310 - Machine LearningAvailable: Nov 4, 2019Nov 11, 2019In all of the following exercises, if there is a need for a random seed, set it to 1234. Usingdifferent sklearn libraries are permitted as long as usage is well-understood and explained inthe code. In case you would need to interpret your results, do so in your Ipython Notebookby changing the cell type and writing your interpretation immediately below the code andits result so that the interpretation can be matched with the result and the code. Submit asingle Ipython Notebook in which all of the answers are organized in a way that can be runand evaluated.1. Random forest (RF). Import the Breast Cancer data set from sklearn. Train andevaluate using 5-fold cross-validation, a Rand代写DS 310、代做Machine Learning、pyom Forest Classifier from the ensemblelibrary of sklearn using 100 trees. Report the following:(a) The average Accuracy, Sensitivity, Specificity, and AUC across all 5 runs of thecross-validation.(b) Report the average feature importance score for each feature across all 5 runs ofthe cross-validation.2. Multinomial Naive Bayes Classifier. Import the 20 News Groups data set fromsklearn. Preprocess the news articles to obtain the bag of words representation of thedata using the sklearn library functions. See sklearn tutorials on text analytics fordocumentation. Train and evaluate a Multinomial Naive Bayes classifier from sklearnusing 5-fold cross-validation.Report the average Accuracy, Sensitivity, Specificity, and AUC across all 5 runs of thecross-validation.1转自:http://www.3daixie.com/contents/11/3444.html
讲解:DS 310、Machine Learning、python、pythonR|R
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...