- Machine Learning with Spark(Second Edition)
- Rajdeep Dua Manpreet Singh Ghotra Nick Pentreath
- 309字
- 2021-07-09 21:07:55
Model training and testing loop
Once we have our training data in a form that is suitable for our model, we can proceed with the model's training and testing phase. During this phase, we are primarily concerned with model selection. This can refer to choosing the best modeling approach for our task, or the best parameter settings for a given model. In fact, the term model selection often refers to both of these processes, as, in many cases, we might wish to try out various models and select the best performing model (with the best performing parameter settings for each model). It is also common to explore the application of combinations of different models (known as ensemble methods) in this phase.
This is typically a fairly straightforward process of running our chosen model on our training dataset and testing its performance on a test dataset (that is, a set of data that is held out for the evaluation of the model that the model has not seen in the training phase). This process is referred to as cross-validation.
Sometimes, the model tends to overfit or doesn't converge fully depending on the type of the dataset and the number of Iterations used.
Using Ensemble methods such as Gradient Boosted Trees and Random forest are techniques used in ML and Spark to avoid overfitting.
However, due to the large scale of data we are typically working with, it is often useful to carry out this initial train-test loop on a smaller representative sample of our full dataset or perform model selection using parallel methods where possible.
For this part of the pipeline, Spark's built-in machine learning library, MLlib, is a perfect fit. We will focus most of our attention in this book on the model training, evaluation, and cross-validation steps for various machine learning techniques, using MLlib and Spark's core features.
- Microsoft Dynamics CRM Customization Essentials
- Mastering Mesos
- Hands-On Graph Analytics with Neo4j
- Mastering Proxmox(Third Edition)
- 輕松學PHP
- 流處理器研究與設計
- Docker on Amazon Web Services
- Azure PowerShell Quick Start Guide
- Photoshop CS5圖像處理入門、進階與提高
- Silverlight 2完美征程
- Linux系統管理員工具集
- QTP自動化測試實踐
- MySQL Management and Administration with Navicat
- Getting Started with Tableau 2019.2
- 玩轉機器人:基于Proteus的電路原理仿真(移動視頻版)