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

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.
主站蜘蛛池模板: 军事| 苍山县| 辽宁省| 江北区| 惠安县| 永和县| 都昌县| 晋州市| 横山县| 西平县| 西乌珠穆沁旗| 栖霞市| 大同县| 道孚县| 陈巴尔虎旗| 凉山| 筠连县| 灵丘县| 永顺县| 南召县| 晋州市| 无锡市| 元阳县| 临汾市| 化州市| 科技| 淅川县| 晋宁县| 南开区| 额尔古纳市| 沁阳市| 庆云县| 仁怀市| 左贡县| 南木林县| 新巴尔虎左旗| 崇阳县| 永登县| 合作市| 洱源县| 惠东县|