官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 读书| 邻水| 永嘉县| 永丰县| 石泉县| 洪江市| 河南省| 遵义县| 怀宁县| 武功县| 南宁市| 舒兰市| 老河口市| 龙南县| 道孚县| 宣化县| 上饶市| 增城市| 资源县| 武冈市| 都兰县| 台东市| 茶陵县| 郸城县| 高唐县| 若尔盖县| 定西市| 桃园县| 西乌珠穆沁旗| 湘阴县| 榆树市| 西和县| 增城市| 古田县| 阿巴嘎旗| 黎城县| 托克逊县| 和林格尔县| 定兴县| 万宁市| 图们市|