Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Here, we allocated 25% of the data for testing, as specified by the test_size parameter."

A block of code is set as follows:

import numpy as np
import matplotlib.pyplot as plt

import utilities 

# Load input data
input_file = 'data_multivar.txt'
X, y = utilities.load_data(input_file)

Any command-line input or output is written as follows:

$ python object_recognizer.py --input-image imagefile.jpg --model-file erf.pkl --codebook-file codebook.pkl

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "If you change the explode array to (0, 0.2, 0, 0, 0), then it will highlight the Strawberry section."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.