当前位置:网站首页>机器学习(二) —— 机器学习基础
机器学习(二) —— 机器学习基础
2022-08-05 05:13:00 【share16】
Python —— 机器学习
机器学习(二) —— 机器学习基础
大家可以关注知乎或微信公众号的share16,我们也会同步更新此文章。
一、补充知识
1.1 xgboost
xgboost和LightGBM等,是目前数据挖掘中最常用的预测算法。xgboost是GBDT(梯度提升树)算法的工程实现,其逻辑是:首先训练一颗树,然后计算出每个样本的误差(也叫梯度),通过去拟合误差训练下一颗树,一直拟合直到训练结果符合要求。
import xgboost as xgb
# from xgboost.sklearn import XGBClassifier
xgb.XGBClassifier()
# objective="binary:logistic" 目标函数,代表是二分类,损失函数是logistic
1.2 LightGBM
LightGBM可以说是xgboost上的延续,在xgboost上做了一些优化,从应用层面上来说最直接的两点就是:①速度变快了很多;②可以支持类别型特征(在xgb中是不可以的,需要one-hot)。
import lightgbm as gbm
gbm.LGBMClassifier()
1.3 BP神经网络
BP神经网络是一种按照误差逆向传播算法训练的多层前馈神经网络,是应用最广泛的神经网络模型之一,也是目前深度学习的理论基础。目前深度学习网络的参数优化是基于BP和梯度回归的。BP神经网络分为前向网络和后向网络,前向网络是计算目标值,后向网络用于梯度计算。
from sklearn.neural_network import MLPClassifier
BP = MLPClassifier()
谢谢大家
边栏推荐
- 【练一下1】糖尿病遗传风险检测挑战赛 【讯飞开放平台】
- 类的底层机制
- The difference between span tag and p
- LAB 信号量实现细节
- Cryptography Series: PEM and PKCS7, PKCS8, PKCS12
- After controlling the export file in MySQL, it becomes \N. Is there any solution?
- 【cesium】Load and locate 3D Tileset
- Using QR codes to solve fixed asset management challenges
- uva1325
- 分布式和集群
猜你喜欢
![[Study Notes Dish Dog Learning C] Classic Written Exam Questions of Dynamic Memory Management](/img/0b/f7d9205c616f7785519cf94853d37d.png)
[Study Notes Dish Dog Learning C] Classic Written Exam Questions of Dynamic Memory Management

jvm 三 之堆与栈
![[cesium] 3D Tileset model is loaded and associated with the model tree](/img/03/50b7394f33118c9ca1fbf31b737b1a.png)
[cesium] 3D Tileset model is loaded and associated with the model tree

【cesium】3D Tileset 模型加载并与模型树关联

【过一下4】09-10_经典网络解析

【cesium】加载并定位 3D Tileset

Excel Paint

结构光三维重建(二)线结构光三维重建

ESP32 485 Illuminance

Develop a highly fault-tolerant distributed system
随机推荐
Flutter learning - the beginning
第三讲 Gradient Tutorial梯度下降与随机梯度下降
[Software Exam System Architect] Software Architecture Design ③ Domain-Specific Software Architecture (DSSA)
【过一下12】整整一星期没记录
【cesium】加载并定位 3D Tileset
【过一下 17】pytorch 改写 keras
第四讲 back propagation 反向传播
Basic properties of binary tree + oj problem analysis
human weakness
UVA10827
[Study Notes Dish Dog Learning C] Classic Written Exam Questions of Dynamic Memory Management
【过一下10】sklearn使用记录
[cesium] 3D Tileset model is loaded and associated with the model tree
【记一下1】2022年6月29日 哥和弟 双重痛苦
redis复制机制
redis 持久化
类的底层机制
服务器磁盘阵列
uva1325
[Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)