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

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.

主站蜘蛛池模板: 洞口县| 郧西县| 博罗县| 长治县| 临夏市| 甘南县| 故城县| 繁昌县| 成武县| 晋宁县| 灵石县| 长宁县| 东乌珠穆沁旗| 岑巩县| 象州县| 江津市| 新竹市| 梨树县| 鹿泉市| 五大连池市| 江口县| 台北县| 呼图壁县| 乌兰浩特市| 营口市| 峨山| 西城区| 长白| 邓州市| 富源县| 内黄县| 福鼎市| 翁牛特旗| 肇东市| 娱乐| 加查县| 嘉善县| 柯坪县| 宁陵县| 阿合奇县| 武宣县|