当前位置:网站首页>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 logistic1.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
边栏推荐
猜你喜欢
随机推荐
延迟加载js方式async与defer区别
数据库 单表查询
【过一下4】09-10_经典网络解析
【过一下6】机器视觉视频 【过一下2被挤掉了】
开发一套高容错分布式系统
Flutter learning 5-integration-packaging-publish
Detailed Explanation of Redis Sentinel Mode Configuration File
『递归』递归概念与典型实例
jvm three heap and stack
Difference between for..in and for..of
【技能】长期更新
【转】什么是etcd
uboot开启调试打印信息
Multi-threaded query results, add List collection
[cesium] 3D Tileset model is loaded and associated with the model tree
redis复制机制
Flutter 父子组件如何都能收到点击事件
淘宝账号如何快速提升到更高等级
Mesos学习
【Untitled】









