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

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.
主站蜘蛛池模板: 恩平市| 桂平市| 和平县| 亳州市| 大田县| 光山县| 温州市| 赤城县| 通江县| 蒙自县| 榆林市| 陕西省| 双柏县| 灌南县| 右玉县| 韩城市| 贵溪市| 富顺县| 福海县| 永仁县| 博客| 清流县| 平凉市| 平陆县| 巫山县| 甘南县| 浦北县| 廉江市| 察雅县| 洮南市| 高青县| 铅山县| 遂川县| 阜新市| 定州市| 洛浦县| 景泰县| 布尔津县| 繁峙县| 平陆县| 富蕴县|