Ensemble Machine Learning Cookbook by Dipayan Sarkar
Author:Dipayan Sarkar [Dipayan Sarkar]
Language: eng
Format: epub
Tags: COM004000 - COMPUTERS / Intelligence (AI) and Semantics, COM044000 - COMPUTERS / Neural Networks, COM042000 - COMPUTERS / Natural Language Processing
Publisher: Packt
Published: 2019-01-31T06:39:03+00:00
Getting ready
In this example, we use a dataset from the UCI ML repository on credit card defaults. This dataset contains the following information:
Default payments
Demographic factors
Credit data
History of payments
Bill statements of credit card clients
The data and the data descriptions are provided in the GitHub folder:
We will start by loading the required libraries and reading our dataset:
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
We set our working folder as follows:
# Set your working directory according to your requirement
os.chdir(".../Chapter 6/Random Forest")
os.getcwd()
Let's now read our data. We will prefix the DataFrame name with df_ so that we can understand it easily:
df_creditcarddata = pd.read_csv("UCI_Credit_Card.csv")
We check the shape of the dataset:
df_creditcarddata.shape
We check the datatypes:
df_creditcarddata.dtypes
We drop the ID column, as this is not required:
df_creditcarddata = df_creditcarddata.drop("ID", axis= 1)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Vision & Pattern Recognition | Expert Systems |
Intelligence & Semantics | Machine Theory |
Natural Language Processing | Neural Networks |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8262)
Test-Driven Development with Java by Alan Mellor(6402)
Data Augmentation with Python by Duc Haba(6302)
Principles of Data Fabric by Sonia Mezzetta(6078)
Hadoop in Practice by Alex Holmes(5944)
Learn Blender Simulations the Right Way by Stephen Pearson(5941)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(5826)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5788)
RPA Solution Architect's Handbook by Sachin Sahgal(5220)
Big Data Analysis with Python by Ivan Marin(5186)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5109)
The Infinite Retina by Robert Scoble Irena Cronin(4910)
Pretrain Vision and Large Language Models in Python by Emily Webber(4162)
Functional Programming in JavaScript by Mantyla Dan(4023)
Infrastructure as Code for Beginners by Russ McKendrick(3921)
The Age of Surveillance Capitalism by Shoshana Zuboff(3918)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3625)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3437)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3409)
