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

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: "Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system."

A block of code is set as follows:

from sklearn.naive_bayes import GaussianNB

#Initializing an NB classifier

nb_classifier = GaussianNB()

#Fitting the classifier into the training data

nb_classifier.fit(X_train, y_train)

#Extracting the accuracy score from the NB classifier

nb_classifier.score(X_test, y_test)
Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 万州区| 英超| 深泽县| 措勤县| 清丰县| 富源县| 新平| 昌图县| 晋宁县| 邵阳市| 曲阜市| 灵丘县| 新郑市| 白朗县| 河北省| 盐边县| 成安县| 营山县| 天门市| 疏勒县| 乌鲁木齐县| 上虞市| 马公市| 凤城市| 六枝特区| 马鞍山市| 开平市| 盈江县| 灵台县| 大连市| 永靖县| 禄丰县| 和顺县| 威海市| 广州市| 蓬莱市| 洛南县| 济源市| 南皮县| 南陵县| 神农架林区|