Conventions used
There are a number of text conventions used throughout this book.
Code in text
: 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: "The AdaBoostRegressor
and AdaBoostClassifier
algorithms may be downloaded from the sklearn.ensemble
library and fit to any training set."
A block of code is set as follows:
X_bikes = df_bikes.iloc[:,:-1] y_bikes = df_bikes.iloc[:,-1] from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X_bikes, y_bikes, random_state=2)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Stopping. Best iteration: [1] validation_0-error:0.118421 Accuracy: 88.16%
Tips or important notes
Appear like this.