当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Dephi逆向工具Dede导出函数名MAP导入到IDA中
【过一下6】机器视觉视频 【过一下2被挤掉了】
RDD和DataFrame和Dataset
仪表板展示 | DataEase看中国:数据呈现中国资本市场
span标签和p标签的区别
"Recursion" recursion concept and typical examples
Flutter学习-开篇
Dashboard Display | DataEase Look at China: Data Presents China's Capital Market
Returned object not currently part of this pool
server disk array
Flutter 父子组件如何都能收到点击事件
The mall background management system based on Web design and implementation
【练一下1】糖尿病遗传风险检测挑战赛 【讯飞开放平台】
二叉树基本性质+oj题解析
Requests the library deployment and common function
Transformation 和 Action 常用算子
Flutter learning three-Flutter basic structure and principle
[cesium] 3D Tileset model is loaded and associated with the model tree
【学生毕业设计】基于web学生信息管理系统网站的设计与实现(13个页面)
[Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)