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

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.
主站蜘蛛池模板: 东阿县| 仙桃市| 公安县| 建宁县| 镶黄旗| 个旧市| 新化县| 深泽县| 浪卡子县| 古田县| 读书| 宝坻区| 昌邑市| 运城市| 澄迈县| 和平区| 大石桥市| 盐城市| 苏尼特右旗| 敖汉旗| 汉中市| 晋城| 日土县| 根河市| 雅江县| 商城县| 定西市| 潞西市| 常山县| 奎屯市| 河北省| 长宁区| 确山县| 阿克陶县| 桦川县| 武义县| 滁州市| 南汇区| 盐山县| 图片| 永德县|