当前位置:网站首页>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
边栏推荐
- 【过一下10】sklearn使用记录
- 【过一下8】全连接神经网络 视频 笔记
- 【过一下11】随机森林和特征工程
- After controlling the export file in MySQL, it becomes \N. Is there any solution?
- redis 持久化
- Distributed systems revisited: there will never be a perfect consistency scheme...
- 有用番茄来监督自己的同道中人吗?加一下我的自习室,一起加油
- CAP+BASE
- Reverse theory knowledge 4
- 二叉树基本性质+oj题解析
猜你喜欢
随机推荐
WPF中DataContext作用
Understanding and use of C# on set() and get() methods
A blog clears the Redis technology stack
ESP32 485光照度
【cesium】元素高亮显示
【过一下8】全连接神经网络 视频 笔记
逆向理论知识4
数字_获取指定位数的小数
【过一下6】机器视觉视频 【过一下2被挤掉了】
1.3 mysql batch insert data
CAP+BASE
Requests the library deployment and common function
开发一套高容错分布式系统
redis事务
human weakness
Flutter Learning 4 - Basic UI Components
MySQL基础(一)---基础认知及操作
Excel Paint
number_gets the specified number of decimals
延迟加载js方式async与defer区别