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

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.
主站蜘蛛池模板: 阿图什市| 垫江县| 剑川县| 惠安县| 东平县| 永新县| 富阳市| 柳林县| 琼中| 广州市| 张家界市| 徐汇区| 河东区| 深水埗区| 渭南市| 册亨县| 东阿县| 福清市| 工布江达县| 佛山市| 四川省| 青浦区| 定结县| 托克托县| 江北区| 黄大仙区| 吉安县| 德保县| 怀来县| 松原市| 饶河县| 宜昌市| 筠连县| 双峰县| 织金县| 会宁县| 孟津县| 深圳市| 资中县| 英吉沙县| 吉木乃县|