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: “Install Jupyter Notebook (pip install notebook).”
A block of code is set as follows:
import numpy as np from sklearn.linear_model import LinearRegression # Prepare sample input data with two features (feature 1, feature 2 X = np.array([[10, 10], [10, 20], [20, 20], [20, 30]]) # Assume that target feature has some relationship with the input features with the formula y = 3 * x_1 + 5 * x_2 + 50 y = np.dot(X, np.array([3, 5])) + 50
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
SELECT DEPTNO, DEPTNAME, MGRNO, MGRNAME, MGREMAILID,LOCATION FROM DEPARTMENT;
Any command-line input or output is written as follows:
!pip3 install tmlt-analytics !pip3 install onnx --user
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 attacker's code aims to execute a model extraction attack by training a new LogisticRegression model (extracted_model) on the same dataset”
Tips or important notes
Appear like this.