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: “For learning purposes, we have provided two example mlruns
artifacts and the huggingface
cache folder in the GitHub repository under the chapter08
folder.”
A block of code is set as follows:
client = boto3.client('sagemaker-runtime')
response = client.invoke_endpoint(
EndpointName=app_name,
ContentType=content_type,
Accept=accept,
Body=payload
)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
loaded_model = mlflow.pyfunc.spark_udf(
spark,
model_uri=logged_model,
result_type=StringType())
Any command-line input or output is written as follows:
mlflow models serve -m models:/inference_pipeline_model/6
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: “To execute the code in this cell, you can just click on Run Cell in the top-right drop-down menu.”
Tips or Important Notes
Appear like this.