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

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.
主站蜘蛛池模板: 肥乡县| 拉孜县| 承德县| 新密市| 清流县| 苍南县| 江达县| 曲阜市| 阳曲县| 通榆县| 红原县| 湘乡市| 正蓝旗| 丹寨县| 定陶县| 易门县| 湘潭县| 安丘市| 辽源市| 郓城县| 远安县| 平安县| 普兰店市| 孝感市| 阳江市| 会宁县| 唐山市| 诏安县| 吴川市| 凤阳县| 资兴市| 保康县| 陇川县| 岐山县| 阿鲁科尔沁旗| 舞钢市| 台南市| 大理市| 银川市| 剑河县| 海阳市|