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

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.
主站蜘蛛池模板: 许昌县| 华容县| 时尚| 应城市| 香港 | 什邡市| 手游| 北票市| 黄山市| 舒城县| 济宁市| 德格县| 从化市| 新巴尔虎左旗| 米易县| 北宁市| 丰宁| 微山县| 如皋市| 昌平区| 霍林郭勒市| 察隅县| 津市市| 盘锦市| 天全县| 哈尔滨市| 通州区| 驻马店市| 开鲁县| 耒阳市| 凤阳县| 洪雅县| 青浦区| 宜阳县| 南部县| 敦煌市| 黑河市| 蒙城县| 湖口县| 兴业县| 台湾省|