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

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.
主站蜘蛛池模板: 陈巴尔虎旗| 洪洞县| 波密县| 南昌市| 临漳县| 吉林省| 兴安县| 芜湖县| 阿巴嘎旗| 会泽县| 札达县| 中山市| 纳雍县| 井研县| 永仁县| 炎陵县| 曲沃县| 长汀县| 扶风县| 阳高县| 萍乡市| 赣榆县| 松阳县| 徐汇区| 河津市| 白玉县| 从江县| 桦甸市| 卢龙县| 千阳县| SHOW| 什邡市| 新田县| 汝城县| 同德县| 晋州市| 西峡县| 上犹县| 临湘市| 古田县| 万载县|