- Deep Learning with PyTorch
- Vishnu Subramanian
- 169字
- 2021-06-24 19:16:19
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The custom class has to implement two main functions, namely __len__(self) and __getitem__(self, idx)."
A block of code is set as follows:
x,y = get_data() # x - represents training data,y - represents target variables
w,b = get_weights() # w,b - Learnable parameters
for i in range(500):
y_pred = simple_network(x) # function which computes wx + b
loss = loss_fn(y,y_pred) # calculates sum of the squared differences of y and y_pred
if i % 50 == 0:
print(loss)
optimize(learning_rate) # Adjust w,b to minimize the loss
Any command-line input or output is written as follows:
conda install pytorch torchvision cuda80 -c soumith
Bold: Indicates a new term, an important word, or words that you see onscreen.
Warnings or important notes appear like this.
Tips and tricks appear like this.
推薦閱讀
- 電腦軟硬件維修大全(實例精華版)
- 基于Proteus和Keil的C51程序設計項目教程(第2版):理論、仿真、實踐相融合
- 計算機組裝與系統配置
- 數字道路技術架構與建設指南
- Deep Learning with PyTorch
- The Applied AI and Natural Language Processing Workshop
- Learning Stencyl 3.x Game Development Beginner's Guide
- scikit-learn:Machine Learning Simplified
- 筆記本電腦維修不是事兒(第2版)
- 分布式系統與一致性
- 筆記本電腦使用、維護與故障排除從入門到精通(第5版)
- Machine Learning with Go Quick Start Guide
- 微型計算機系統原理及應用:國產龍芯處理器的軟件和硬件集成(基礎篇)
- VMware Workstation:No Experience Necessary
- DevOps實戰:VMware管理員運維方法、工具及最佳實踐