practical_machine_learning_with_h2o.pdf

(10330 KB) Pobierz
H2O
POWERFUL, SCALABLE
TECHNIQUES FOR AI
AND DEEP LEARNING
Practical Machine
Learning with
Darren Cook
Practical Machine Learning
with H2O
Powerful, Scalable Techniques
for Deep Learning and AI
Darren Cook
Beijing
Boston Farnham Sebastopol
Tokyo
Practical Machine Learning with H2O
by Darren Cook
Copyright © 2017 Darren Cook. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/insti‐
tutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editor:
Nicole Tache
Production Editor:
Colleen Lobner
Copyeditor:
Kim Cofer
Proofreader:
Charles Roumeliotis
December 2016:
First Edition
Indexer:
WordCo Indexing Services, Inc.
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Rebecca Demarest
Revision History for the First Edition
2016-12-01:
2017-01-06:
First Release
Second Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491964606
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Practical Machine Learning with H2O,
the cover image of a crayfish, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-96460-6
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1.
Installation and Quick-Start. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Preparing to Install
Installing R
Installing Python
Privacy
Installing Java
Install H2O with R (CRAN)
Install H2O with Python (pip)
Our First Learning
Training and Predictions, with Python
Training and Predictions, with R
Performance Versus Predictions
On Being Unlucky
Flow
Data
Models
Predictions
Other Things in Flow
Summary
Memory Requirements
Preparing the Data
Getting Data into H2O
Load CSV Files
Load Other File Formats
1
2
2
3
3
3
5
7
11
13
15
16
17
17
20
20
22
23
25
26
28
28
30
iii
2.
Data Import, Data Export. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Zgłoś jeśli naruszono regulamin