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

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: "This will install the Python libraries in the $HOME/anaconda3 folder since we are using Python 3. A Python 2 version is also available and the installation process is similar. To use Anaconda, the newly installed libraries need to be added in $PATH, this can be done every time a new shell is launched."

A block of code is set as follows:

import numpy as np 
import matplotlib.pyplot as plt
import cv2

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

from sklearn.metrics import f1_score
true_y = .... # ground truth values
pred_y = .... # output of the model

f1_value = f1_score(true_y, pred_y, average='micro')

Any command-line input or output is written as follows:

sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

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.
主站蜘蛛池模板: 疏勒县| 西青区| 宜春市| 南涧| 安泽县| 抚顺市| 静安区| 海淀区| 鄂托克旗| 唐海县| 阜新市| 贡山| 湘阴县| 保德县| 措勤县| 湖北省| 宁海县| 图片| 尼木县| 罗源县| 独山县| 贡山| 孝感市| 石泉县| 郎溪县| 定西市| 蒙阴县| 马尔康县| 大理市| 永清县| 乌海市| 兰西县| 兰考县| 浠水县| 江陵县| 应城市| 云梦县| 长沙市| 普安县| 安宁市| 黄龙县|