《PyTorch深度学习实践》02.PyTorch实现Logistic Regression(分类问题)
《PyTorch深度学习实践》 .PyTorch实现Logistic Regression(分类问题)
一、Regression v.s. Classification
How to map: R -> [0,1] ?
Sigmoid functions

二、Logistic Function
1.Logistic Regression Model
2.Loss function for Binary Classification
BCE损失:
3. Implementation of Logistic Regression
Init:
BCELoss:

4个步骤:
三、Code
1 | import torch |
- Title: 《PyTorch深度学习实践》02.PyTorch实现Logistic Regression(分类问题)
- Author: Nannan
- Created at : 2024-07-12 20:52:41
- Updated at : 2024-09-29 23:20:25
- Link: https://redefine.ohevan.com/2024/07/12/【实践】02.Logistic Regression/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments