- Hands-On Machine Learning with ML.NET
- Jarred Capellman
- 215字
- 2021-06-24 16:43:29
Project architecture
The simple project will be split into two primary functions:
- Training and evaluation
- Model runs
This split between functionality models real-world production applications that utilize machine learning, as there are often teams dedicated to each.
For those who wish to start with a completed project and follow along with the rest of this section, you can get the code from here: https://github.com/PacktPublishing/Hands-On-Machine-Learning-With-ML.NET/tree/master/chapter02
The following screenshot shows the project breakdown in Solution Explorer of Visual Studio. As mentioned earlier, the project is split into two main classes—Predictor and Trainer:
The Trainer class contains all the model building and evaluation code, while the Predictor class, as the name implies, contains the code to run predictions with a trained model.
The BaseML class is what we will be using in subsequent chapters and expanding upon throughout the remainder of the book. The idea behind this class is to cut down on the DRY (don't repeat yourself) violations and to create a cohesive and easy to iterate framework. The Constants class further assists this idea—to cut down on magic strings as we move into more complex applications; this design will be used in all future chapter projects.
Lastly, the Program class is the main entry point for our console application.
- Redis入門指南(第3版)
- 測試驅(qū)動開發(fā):入門、實戰(zhàn)與進(jìn)階
- Java 9 Programming Blueprints
- 編寫高質(zhì)量代碼:改善C程序代碼的125個建議
- 基于差分進(jìn)化的優(yōu)化方法及應(yīng)用
- 從學(xué)徒到高手:汽車電路識圖、故障檢測與維修技能全圖解
- PLC編程與調(diào)試技術(shù)(松下系列)
- Learning Hunk
- C語言程序設(shè)計上機指導(dǎo)與習(xí)題解答(第2版)
- 時空數(shù)據(jù)建模及其應(yīng)用
- Learning Image Processing with OpenCV
- XML程序設(shè)計(第二版)
- C# 7.0本質(zhì)論
- Building Apple Watch Projects
- 從零開始學(xué)UI設(shè)計·基礎(chǔ)篇