![Ensemble Machine Learning Cookbook](https://img.perlego.com/book-covers/876516/9781789132502_300_450.webp)
Ensemble Machine Learning Cookbook
Over 35 practical recipes to explore ensemble machine learning techniques using Python
Dipayan Sarkar, Vijayalakshmi Natarajan
- 336 páginas
- English
- ePUB (apto para móviles)
- Disponible en iOS y Android
Ensemble Machine Learning Cookbook
Over 35 practical recipes to explore ensemble machine learning techniques using Python
Dipayan Sarkar, Vijayalakshmi Natarajan
Información del libro
Implement machine learning algorithms to build ensemble models using Keras, H2O, Scikit-Learn, Pandas and more
Key Features
- Apply popular machine learning algorithms using a recipe-based approach
- Implement boosting, bagging, and stacking ensemble methods to improve machine learning models
- Discover real-world ensemble applications and encounter complex challenges in Kaggle competitions
Book Description
Ensemble modeling is an approach used to improve the performance of machine learning models. It combines two or more similar or dissimilar machine learning algorithms to deliver superior intellectual powers. This book will help you to implement popular machine learning algorithms to cover different paradigms of ensemble machine learning such as boosting, bagging, and stacking.
The Ensemble Machine Learning Cookbook will start by getting you acquainted with the basics of ensemble techniques and exploratory data analysis. You'll then learn to implement tasks related to statistical and machine learning algorithms to understand the ensemble of multiple heterogeneous algorithms. It will also ensure that you don't miss out on key topics, such as like resampling methods. As you progress, you'll get a better understanding of bagging, boosting, stacking, and working with the Random Forest algorithm using real-world examples. The book will highlight how these ensemble methods use multiple models to improve machine learning results, as compared to a single model. In the concluding chapters, you'll delve into advanced ensemble models using neural networks, natural language processing, and more. You'll also be able to implement models such as fraud detection, text categorization, and sentiment analysis.
By the end of this book, you'll be able to harness ensemble techniques and the working mechanisms of machine learning algorithms to build intelligent models using individual recipes.
What you will learn
- Understand how to use machine learning algorithms for regression and classification problems
- Implement ensemble techniques such as averaging, weighted averaging, and max-voting
- Get to grips with advanced ensemble methods, such as bootstrapping, bagging, and stacking
- Use Random Forest for tasks such as classification and regression
- Implement an ensemble of homogeneous and heterogeneous machine learning algorithms
- Learn and implement various boosting techniques, such as AdaBoost, Gradient Boosting Machine, and XGBoost
Who this book is for
This book is designed for data scientists, machine learning developers, and deep learning enthusiasts who want to delve into machine learning algorithms to build powerful ensemble models. Working knowledge of Python programming and basic statistics is a must to help you grasp the concepts in the book.
Preguntas frecuentes
Información
Statistical and Machine Learning Algorithms
- Multiple linear regression
- Logistic regression
- Naive Bayes
- Decision trees
- Support vector machines
Technical requirements
Multiple linear regression
![](https://book-extracts.perlego.com/876516/images/a873ef1f-dd8a-4450-8afa-5e5c3c4b2dc5-plgo-compressed.webp)
![](https://book-extracts.perlego.com/876516/images/9d832a44-5813-46fb-9d89-681fc4ed016a-plgo-compressed.webp)
![](assets/088198d7-1233-4571-9fcc-61c6dba157ad-plgo-compressed.webp)
![](assets/19a78dc6-d3ee-4492-b89e-6d42851d79b0-plgo-compressed.webp)
![](https://book-extracts.perlego.com/876516/images/a343305a-25c0-4a07-8783-5045b92efe76-plgo-compressed.webp)
![](https://book-extracts.perlego.com/876516/images/9c4fefc7-e6fe-4dd2-a801-a379f072ae3c-plgo-compressed.webp)
![](assets/8302e115-092f-45d0-b4be-8689554c67a9-plgo-compressed.webp)
![](assets/20b55abb-3b52-41db-8c2e-e1d7b36c8d0c-plgo-compressed.webp)
![](https://book-extracts.perlego.com/876516/images/bcc37182-bc5c-4ce3-9f45-8e124cd79d81-plgo-compressed.webp)
![](https://book-extracts.perlego.com/876516/images/5d58def7-dceb-4c83-8add-15c9237d55b0-plgo-compressed.webp)
by
![](https://book-extracts.perlego.com/876516/images/6ae71158-dd81-4087-b5ce-5d8e76ce02c4-plgo-compressed.webp)
![](https://book-extracts.perlego.com/876516/images/556b7d9a-e0a6-4d3f-af81-cda64717e7ed-plgo-compressed.webp)
![](https://book-extracts.perlego.com/876516/images/f2895db5-0f99-4a3e-801f-5b9594ecf991-plgo-compressed.webp)
Getting ready
# import os for operating system dependent functionalities
import os
# import other required libraries
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
# Set your working directory according to your requirement
os.chdir(".../Chapter 4/Linear Regression")
os.getcwd()
df_housingdata = pd.read_csv("Final_HousePrices.csv")
How to do it...
- First, we'll take a look at the variables and the variable types:
# See the variables and their data types
df_housingdata.dtypes
- We'll then look at the correlation matrix. The corr() method computes the pairwise correlation of columns:
# We pass 'pearson' as the method for calculating our correlation
df_housingdata.corr(method='pearson')
- Besides this, we'd also like to study the correlation between the predictor variables and the response variable: ...
Índice
- Title Page
- Copyright and Credits
- About Packt
- Foreword
- Contributors
- Preface
- Get Closer to Your Data
- Getting Started with Ensemble Machine Learning
- Resampling Methods
- Statistical and Machine Learning Algorithms
- Bag the Models with Bagging
- When in Doubt, Use Random Forests
- Boosting Model Performance with Boosting
- Blend It with Stacking
- Homogeneous Ensembles Using Keras
- Heterogeneous Ensemble Classifiers Using H2O
- Heterogeneous Ensemble for Text Classification Using NLP
- Homogenous Ensemble for Multiclass Classification Using Keras
- Other Books You May Enjoy