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

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.
主站蜘蛛池模板: 岳池县| 渭源县| 太康县| 广州市| 黎川县| 巍山| 镇远县| 安溪县| 乃东县| 萝北县| 西畴县| 中卫市| 瑞金市| 县级市| 邛崃市| 河东区| 遂昌县| 新野县| 会泽县| 霍林郭勒市| 萨迦县| 黄骅市| 密云县| 伊吾县| 玉门市| 延庆县| 海伦市| 双牌县| 平远县| 项城市| 芜湖市| 南皮县| 中江县| 临猗县| 墨竹工卡县| 师宗县| 宜兴市| 巴青县| 麻城市| 南通市| 壤塘县|