- 博客(2)
- 收藏
- 关注
原创 神经网络与深度学习——花卉分类
import osepoch_losses = [] # 用于存储每个epoch的平均损失#定义损失函数为交叉熵损失,用于多类分类问题。#定义优化器为随机梯度下降(SGD),并设置学习率和动量。
2024-06-24 01:48:45
686
原创 天池学习赛交流分享——信用卡欺诈null
print('k近邻算法KNN准确率:',format(f1_score(y_test, knn_yhat)))print( '决策树准确率:',format(f1_score(y_test, tree_yhat)))print('逻辑回归准确率:',format(f1_score(y_test, lr_yhat)))print('随机森林准确率:',format(f1_score(y_test, rf_yhat)))print(cl('欺诈案件的数量为 {}'.format(fraud_count)))
2024-06-07 23:40:09
289
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人