当前位置:网站首页>Machine Learning (2) - Machine Learning Fundamentals
Machine Learning (2) - Machine Learning Fundamentals
2022-08-05 05:23:00 【share16】
Python - Machine Learning
Machine Learning (2) - Machine Learning Fundamentals
You can follow share16 on Zhihu or WeChat public account, we will also update this article synchronously.
I. Supplementary knowledge
1.1 xgboost
xgboost and LightGBM are the most commonly used prediction algorithms in data mining.xgboost is an engineering implementation of the GBDT (gradient boosting tree) algorithm. Its logic is: first train a tree, then calculate the error (also called gradient) of each sample, train the next tree by fitting the error, and keep fittinguntil the training results meet the requirements.
import xgboost as xgb# from xgboost.sklearn import XGBClassifierxgb.XGBClassifier()# objective="binary:logistic" The objective function, representing the binary classification, the loss function is logistic
1.2 LightGBM
LightGBM can be said to be a continuation of xgboost. Some optimizations have been made on xgboost. From the application level, the two most direct points are: ① The speed is much faster; ② It can support category-type features (in xgb it isNo, one-hot is required).
import lightgbm as gbmgbm.LGBMClassifier()
1.3 BP Neural Network
BP neural network is a multi-layer feedforward neural network trained according to the error back-propagation algorithm. It is one of the most widely used neural network models and the theoretical basis of current deep learning.The current parameter optimization of deep learning network is based on BP and gradient regression.The BP neural network is divided into a forward network and a backward network. The forward network is used to calculate the target value, and the backward network is used for gradient calculation.
from sklearn.neural_network import MLPClassifierBP = MLPClassifier()
Thank you all
边栏推荐
- 重新审视分布式系统:永远不会有完美的一致性方案……
- Distributed systems revisited: there will never be a perfect consistency scheme...
- 【过一下10】sklearn使用记录
- Mesos学习
- coppercam primer [6]
- Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
- 【cesium】元素高亮显示
- Analysis of Mvi Architecture
- 2022 Hangzhou Electric Multi-School 1st Session 01
- [cesium] 3D Tileset model is loaded and associated with the model tree
猜你喜欢
随机推荐
Error creating bean with name 'configDataContextRefresher' defined in class path resource
Returned object not currently part of this pool
2022杭电多校第一场01
【过一下7】全连接神经网络视频第一节的笔记
【过一下9】卷积
[cesium] element highlighting
分布式和集群
HQL语句执行过程
二叉树基本性质+oj题解析
【过一下12】整整一星期没记录
Flutter学习4-基本UI组件
What field type of MySQL database table has the largest storage length?
Excel画图
【过一下 17】pytorch 改写 keras
A blog clears the Redis technology stack
[Decoding tools] Some online tools for Bitcoin
OFDM 十六讲 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
第三讲 Gradient Tutorial梯度下降与随机梯度下降
Flutter TapGestureRecognizer 如何工作
有用番茄来监督自己的同道中人吗?加一下我的自习室,一起加油