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

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.
主站蜘蛛池模板: 涟水县| 文成县| 丰原市| 延边| 湟中县| 尼勒克县| 监利县| 湖北省| 万州区| 建宁县| 云梦县| 胶南市| 新密市| 宜章县| 加查县| 宿松县| 马公市| 威宁| 武义县| 普兰县| 莱芜市| 阿巴嘎旗| 育儿| 日土县| 长沙县| 中牟县| 丰都县| 河南省| 衡阳市| 子洲县| 苏尼特左旗| 确山县| 惠州市| 改则县| 乐亭县| 紫阳县| 宿松县| 行唐县| 合山市| 沅江市| 禄劝|