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 following code example can be found in the Code_Examples_Chap5.ipynb
notebook in the GitHub repository.”
A block of code is set as follows:
map_estimate = minimize(neg_log_posterior, x0, method='BFGS', options={'disp': True}) # Convert from logit(p) to p p_optimal = np.exp(map_estimate['x'][0])/ ( 1.0 + np.exp(map_estimate['x'][0])) print("MAP estimate of success probability = ", p_optimal)
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “The name ARIMA stands for Auto-Regressive Integrated Moving Average models.”
Tips or important notes
Appear like this.