- 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.
- 24小時學會電腦組裝與維護
- Instant uTorrent
- Android NDK Game Development Cookbook
- Effective STL中文版:50條有效使用STL的經驗(雙色)
- 硬件產品經理成長手記(全彩)
- Artificial Intelligence Business:How you can profit from AI
- Learning Stencyl 3.x Game Development Beginner's Guide
- Camtasia Studio 8:Advanced Editing and Publishing Techniques
- Svelte 3 Up and Running
- Spring Cloud微服務架構實戰
- Machine Learning with Go Quick Start Guide
- 計算機組裝維修與外設配置(高等職業院校教改示范教材·計算機系列)
- 筆記本電腦使用、維護與故障排除從入門到精通(第5版)
- Wireframing Essentials
- 微服務實戰(Dubbox +Spring Boot+Docker)