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, or URLs. For example: “Slicing works by specifying the first and last elements with an optional step size, using the syntax object[first:last:step].”
A block of code is set as follows:
from sklearn.datasets import load_iris
data = load_iris()
x, y = data["data"], data["target"]
x[:10]
Any command-line input or output is written as follows:
(3.5, -2.71, 'a string')
Italics indicate new concepts or emphasis. For instance, words in menus or dialog boxes appear in the text like this. For example: "This is our first example of a non-differentiable function."