- Machine Learning with scikit:learn Quick Start Guide
- Kevin Jolly
- 103字
- 2021-06-24 18:15:51
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.
推薦閱讀
- Practical Ansible 2
- 腦動力:C語言函數(shù)速查效率手冊
- Visual FoxPro 6.0數(shù)據(jù)庫與程序設(shè)計
- Implementing Splunk 7(Third Edition)
- Ruby on Rails敏捷開發(fā)最佳實踐
- 網(wǎng)絡(luò)安全管理實踐
- SAP Business Intelligence Quick Start Guide
- 筆記本電腦維修90個精選實例
- Applied Data Visualization with R and ggplot2
- 教育機器人的風(fēng)口:全球發(fā)展現(xiàn)狀及趨勢
- C++程序設(shè)計基礎(chǔ)(上)
- The DevOps 2.1 Toolkit:Docker Swarm
- 會聲會影X4中文版從入門到精通
- 簡明學(xué)中文版Photoshop
- 中文版Photoshop情境實訓(xùn)教程