第十五周作业

该博客介绍了使用Sklearn进行的机器学习作业,对比了GaussianNB、SVC(多项式核,C值变化)和RandomForestClassifier在随机二分类问题上的性能。通过10折交叉验证,GaussianNB和RandomForestClassifier展现出完美预测能力,而SVC表现不佳,所有预测值均为1,未成功完成分类。
摘要由CSDN通过智能技术生成

Assignment of Sklearn

Task

In the second ML assignment you have to compare the performance of three different classification algorithms, namely Naive Bayes, SVM, and Random Forest.

For this assignment you need to generate a random binary classification problem, and then train and test (using 10-fold cross validation) the three algorithms. For some algorithms inner cross validation (5-fold) for choosing the parameters is needed. Then, show the classification performace (per-fold and averaged) in the report, and briefly discussing the results.

  • Create a classification dataset (n_samples 1000 ≥ 1000 , n_features 10 ≥ 10 )
  • Split the dataset using 10-fold cross validation
  • Train the algorithms
    • GaussianNB
    • SVC (possible C values [1e-02, 1e-01, 1e00, 1e01, 1e02], RBF kernel)
    • RandomForestClassifier (possible n estimators values [10, 100, 1000])
  • Evaluate the cross-validated performance
    • Accuracy
    • F1-score
    • AUC ROC
  • Write a short report summarizing the methodology and the results

Step 1

Create a classification dataset (n_samples 1000 ≥ 1000 , n_features 10 ≥ 10 )

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值