- Hands-On Machine Learning with ML.NET
- Jarred Capellman
- 197字
- 2021-06-24 16:43:23
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, dummy URLs, user input, and Twitter handles. Here is an example: "The first time the application is run, the ML.NET version of the model is trained with the images and tags.tsv file (to be reviewed in the next section)."
A block of code is set as follows:
public void Classify(string imagePath)
{
var result = _prediction.Predict(imagePath);
ImageClassification = $"Image ({imagePath}) is a picture of {result.PredictedLabelValue} with a confidence of {result.Score.Max().ToString("P2")}";
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
dotnet --version
3.0.100
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Firstly, ensure that .NET desktop development, Universal Windows Platform Development, and ASP.NET and web development are checked."