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

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "When inspecting the linear model, first check the coef_ attribute."

A block of code is set as follows:

from sklearn import datasets
iris = datasets.load_iris()

Since we will be using Jupyter Notebooks along most of the examples, expect to have always an input (marked as In:) and often an output (marked Out:) from the cell containing the block of code. On your computer you have just to input the code after the In: and check if results correspond to the Out: content:

In: clf.fit(X, y)
Out: SVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0, degree=3, gamma=0.0, kernel='rbf', max_iter=-1, probability=False, random_state=None, shrinking=True, tol=0.001, verbose=False)

When a command should be given in the terminal command line, you'll find the command with the prefix $>, otherwise, if it's for the Python REPL it will be preceded by >>>:

$>python
>>> import sys
>>> print sys.version_info

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "As a rule, you just have to type the code after In: in your cells and run it."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 六枝特区| 永济市| 延庆县| 洞口县| 肇州县| 三都| 茂名市| 海林市| 汝阳县| 涿鹿县| 琼海市| 历史| 鲁山县| 毕节市| 怀安县| 潜山县| 堆龙德庆县| 普定县| 张家港市| 大竹县| 广河县| 乃东县| 屏边| 积石山| 建阳市| 南宁市| 巴青县| 都兰县| 木里| 乌兰县| 平罗县| 丹棱县| 富顺县| 连城县| 安福县| 吉木萨尔县| 盐城市| 闻喜县| 罗平县| 塔城市| 龙游县|