- Deep Learning with PyTorch
- Vishnu Subramanian
- 187字
- 2021-06-24 19:16:25
Neural network model
Once we have defined the inputs and outputs of the model using PyTorch variables, we have to build a model which learns how to map the outputs from the inputs. In traditional programming, we build a function by hand coding different logic to map the inputs to the outputs. However, in deep learning and machine learning, we learn the function by showing it the inputs and the associated outputs. In our example, we implement a simple neural network which tries to map the inputs to outputs, assuming a linear relationship. The linear relationship can be represented as y = wx + b, where w and b are learnable parameters. Our network has to learn the values of w and b, so that wx + b will be closer to the actual y. Let's visualize our training dataset and the model that our neural network has to learn:

The following figure represents a linear model fitted on input data points:

The dark-gray (blue) line in the image represents the model that our network learns.
- FPGA從入門到精通(實戰篇)
- 硬件產品經理手冊:手把手構建智能硬件產品
- 單片機原理及應用系統設計
- scikit-learn:Machine Learning Simplified
- 分布式系統與一致性
- OpenGL Game Development By Example
- 單片機開發與典型工程項目實例詳解
- Blender Quick Start Guide
- Hands-On Motion Graphics with Adobe After Effects CC
- FL Studio Cookbook
- Spring Cloud實戰
- 筆記本電腦的結構、原理與維修
- 施耐德M241/251可編程序控制器應用技術
- Service Mesh微服務架構設計
- ARM接口編程