Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Machine Learning with IBM Watson

You're reading from   Hands-On Machine Learning with IBM Watson Leverage IBM Watson to implement machine learning techniques and algorithms using Python

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789611854
Length 288 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
James D. Miller James D. Miller
Author Profile Icon James D. Miller
James D. Miller
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: Introduction and Foundation FREE CHAPTER
2. Introduction to IBM Cloud 3. Feature Extraction - A Bag of Tricks 4. Supervised Machine Learning Models for Your Data 5. Implementing Unsupervised Algorithms 6. Section 2: Tools and Ingredients for Machine Learning in IBM Cloud
7. Machine Learning Workouts on IBM Cloud 8. Using Spark with IBM Watson Studio 9. Deep Learning Using TensorFlow on the IBM Cloud 10. Section 3: Real-Life Complete Case Studies
11. Creating a Facial Expression Platform on IBM Cloud 12. The Automated Classification of Lithofacies Formation Using ML 13. Building a Cloud-Based Multibiometric Identity Authentication Platform 14. Another Book You May Enjoy

Training the classifier

scikit-learn library can be used to code machine learning classifier and is the only Python library which has four-step modeling pattern.

Refer to the following link for more information about sckit-learn: http://www.jmlr.org/papers/volume12/pedregosa11a/pedregosa11a.pdf.

The coding process of implementing the scikit-learn model applies to various classifiers within sklearn, such as decision trees, k-nearest neighbors (KNN), and more. We will look at a few of these classifiers here, using our well logging data.

The first step in using Scikit to build a model is to create training and test datasets and apply scaling, using the following lines of Python code:

from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0)
from sklearn.preprocessing import MinMaxScaler
scaler = MinMaxScaler()
X_train...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image