Data Science Desktop Survival Guide
by Graham Williams |
|||||
Chapter: ML Template |
20200607 We started with a template for data wrangling in Chapter 7, explored the data in Chapter 8, learnt how to transform the data in Chapter 9, and gained initial insights through visualisations in Chapter 10. We are now ready to use machine learning to build analytic models and begin to understand the knowledge the models are capturing. In this chapter we develop a template for building and evaluating models. As with the data template in Chapter 7 the intention of the template is to provide a starting point for building and evaluating models.
R offers an full suite of model builders. We will use one such model builder in this chapter. A model builder is access via a function call and the arguments to the function are generally similar across different model builders. Non-the-less, each algorithm is generally implemented by different developers and so idiosyncratic differences occur.