Machine Learning: The Ultimate Guide for Beginners and Starters (Artificial Intelligence, Algorithms, Data Science, Machine Learning For Beginners) by Andy Grey
Author:Andy Grey
Language: eng
Format: azw3, epub
Published: 2017-07-01T07:00:00+00:00
Loading the Data
Now we are set up, it’s time to load the data. For this, we are using the iris dataset, famous for being used as the “Hello World” dataset that everyone starts off on. This dataset has 150 iris flower observations in it with 4 columns containing flower measurements in centimeters. The last column contains the species of iris and all the flowers in the dataset belong to one of the three species listed.
The file is in CSV format.
The first thing to do is load up the libraries that we need so input the following script in the Python interpreter:
# Load libraries
import pandas
from pandas.tools.plotting import scatter_matrix
import matplotlib.pyplot as plt
from sklearn import model_selection
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
from sklearn.metrics import accuracy_score
from sklearn.linear_model import LogisticRegression
from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.naive_bayes import Gaussians
from skarns import SVC
If you see any errors, stop and start again. Copy and paste if necessary because you need a fully working SciPy environment before you can go any further
To load the dataset, we are going to use pandas and we will also use pandas to explore this data using data visualization and descriptive statistics. Note that, to do this, we are going to specify the column names – you will find this very helpful later for exploring the data.
Input this script into your interpreter:
# Load dataset
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"
names = ['sepal-length', 'sepal-width', 'petal-length', 'petal-width', 'class']
dataset = pandas.read_csv(url, names=names)
Download
Machine Learning: The Ultimate Guide for Beginners and Starters (Artificial Intelligence, Algorithms, Data Science, Machine Learning For Beginners) by Andy Grey.epub
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.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8300)
Test-Driven Development with Java by Alan Mellor(6724)
Data Augmentation with Python by Duc Haba(6639)
Principles of Data Fabric by Sonia Mezzetta(6390)
Learn Blender Simulations the Right Way by Stephen Pearson(6290)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6161)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5807)
RPA Solution Architect's Handbook by Sachin Sahgal(5559)
Big Data Analysis with Python by Ivan Marin(5365)
The Infinite Retina by Robert Scoble Irena Cronin(5249)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5147)
Pretrain Vision and Large Language Models in Python by Emily Webber(4328)
Infrastructure as Code for Beginners by Russ McKendrick(4089)
Functional Programming in JavaScript by Mantyla Dan(4038)
The Age of Surveillance Capitalism by Shoshana Zuboff(3950)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3804)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3608)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3579)
