Book Image

Machine Learning with R Quick Start Guide

By : Iván Pastor Sanz
Book Image

Machine Learning with R Quick Start Guide

By: Iván Pastor Sanz

Overview of this book

Machine Learning with R Quick Start Guide takes you on a data-driven journey that starts with the very basics of R and machine learning. It gradually builds upon core concepts so you can handle the varied complexities of data and understand each stage of the machine learning pipeline. From data collection to implementing Natural Language Processing (NLP), this book covers it all. You will implement key machine learning algorithms to understand how they are used to build smart models. You will cover tasks such as clustering, logistic regressions, random forests, support vector machines, and more. Furthermore, you will also look at more advanced aspects such as training neural networks and topic modeling. By the end of the book, you will be able to apply the concepts of machine learning, deal with data-related problems, and solve them using the powerful yet simple language that is R.
Table of Contents (9 chapters)

Automatic machine learning

Now that we have learned how to develop a powerful model to predict bank failures, we will test a final option to develop different models. Specifically, we will try out automatic machine learning (autoML), which is included in the h2o package. The process that we have carried out to build many models and find the best one without any prior knowledge is done automatically by the autoML function. This function trains different models by trying different grids of parameters. Moreover, stacked ensembles or models based on previously trained models are trained to find more accurate or predictive models.

In my opinion, using this function before launching any model is highly recommended to get an initial idea of a reference starting point. Using an automatic approach, we can assess the most reliable algorithms, the most important potential variables to be...