Download full Graph Powered Machine Learning 1st Edition Alessandro Negro ebook all chapters
Download full Graph Powered Machine Learning 1st Edition Alessandro Negro ebook all chapters
com
https://ebookmeta.com/product/graph-powered-machine-
learning-1st-edition-alessandro-negro/
OR CLICK BUTTON
DOWNLOAD NOW
https://ebookmeta.com/product/knowledge-graphs-applied-
meap-v02-alessandro-negro/
ebookmeta.com
https://ebookmeta.com/product/machine-learning-zhou/
ebookmeta.com
https://ebookmeta.com/product/an-inquiry-into-the-nature-and-causes-
of-the-wealth-of-nations-1776-1st-edition-adam-smith-5/
ebookmeta.com
Emerging Adulthood and Higher Education A New Student
Development Paradigm 1st Edition Joseph L Murray Editor
Jeffrey Jensen Arnett Editor
https://ebookmeta.com/product/emerging-adulthood-and-higher-education-
a-new-student-development-paradigm-1st-edition-joseph-l-murray-editor-
jeffrey-jensen-arnett-editor/
ebookmeta.com
https://ebookmeta.com/product/stop-stress-improving-the-quality-of-
your-life-a-new-approach-to-stress-and-anxiety-1st-edition-marcel-
verheyen/
ebookmeta.com
https://ebookmeta.com/product/the-psychology-of-law-lubogo-
christopher-isaac/
ebookmeta.com
https://ebookmeta.com/product/the-hidden-history-of-code-breaking-1st-
edition-sinclair-mckay/
ebookmeta.com
MANNING
Graph-Powered Machine Learning
Graph-Powered
Machine Learning
ALESSANDRO NEGRO
FOREWORD BY DR. JIM WEBBER
MANNING
SHELTER ISLAND
For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 761
Shelter Island, NY 11964
Email: orders@manning.com
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books are
printed on paper that is at least 15 percent recycled and processed without the use of elemental
chlorine.
The author and publisher have made every effort to ensure that the information in this book
was correct at press time. The author and publisher do not assume and hereby disclaim any
liability to any party for any loss, damage, or disruption caused by errors or omissions, whether
such errors or omissions result from negligence, accident, or any other cause, or from an usage
of the information herein.
ISBN 9781617295645
Printed in the United States of America
To Filippo and Flavia:
I hope you are as proud of your father
as I am always proud of you.
brief contents
PART 1 INTRODUCTION ................................................................1
1 ■ Machine learning and graphs: An introduction 3
2 ■ Graph data engineering 30
3 ■ Graphs in machine learning applications 71
vii
viii BRIEF CONTENTS
preparation 8 Modeling
■
9 Evaluation 9 Deployment
■ ■
9
1.2 Machine learning challenges 10
The source of truth 10 Performance ■
13 ■
Storing the
model 14 Real time 14
■
1.3 Graphs 15
What is a graph? 15 ■
Graphs as models of networks 17
1.4 The role of graphs in machine learning 23
Data management 25 ■
Data analysis 25 ■
Data
visualization 26
1.5 Book mental model 27
ix
x CONTENTS
36
33
■
Variety 38 ■
Veracity 39
2.2 Graphs in the big data platform 40
Graphs are valuable for big data 41 ■
Graphs are valuable for
master data management 48
2.3 Graph databases 53
Graph database management 54 Sharding 57 Replication 60
■ ■
3.3 Algorithms 93
Identify risks in a supply chain 93 Find keywords in a
■
4 Content-based recommendations
4.1 Representing item features 122
119
5 Collaborative filtering
5.1
166
Collaborative filtering recommendations 170
5.2 Creating the bipartite graph for the User-Item dataset 172
5.3 Computing the nearest neighbor network 177
5.4 Providing recommendations 189
CONTENTS xi
6 Session-based recommendations
6.1 The session-based approach
202
203
6.2 The events chain and the session graph 206
6.3 Providing recommendations 212
Item-based k-NN 213 ■
Session-based k-NN 219
6.4 Advantages of the graph approach 224
9 Proximity-based algorithms
9.1
295
Proximity-based algorithms: An introduction 296
9.2 Distance-based approach 298
Storing transactions as a graph 300 Creating the k-nearest
■
12 Knowledge graphs
12.1
389
Knowledge graphs: Introduction 390
12.2 Knowledge graph building: Entities 393
12.3 Knowledge graph building: Relationships 402
12.4 Semantic networks 409
12.5 Unsupervised keyword extraction 415
Keyword co-occurrence graph 423 ■
Clustering keywords and topic
identification 425
12.6 Advantages of the graph approach 428
xiii
xiv FOREWORD
The book eases us in, providing an overall framework to reason about machine
learning and integrate it into our data systems. It follows up immediately with a practi-
cal approach to recommendations covering a variety of approaches, such as collabora-
tive filtering, content- and session-based recommendations, and hybrid styles.
Alessandro calls out the problems which lack explainability in state-of-the-art tech-
niques and shows that this isn’t an issue with the graph approach. He then continues
to tackle fraud detection, taking in concepts like proximity and social network analy-
sis, where we relearn the maxim that “birds of a feather flock together” in the context
of criminal networks. Finally, the book deals with knowledge graphs: the ability of
graph technology to consume documents and distil connected knowledge from them,
disambiguate terms, and handle ambiguous query terms. The breadth of topics is vast,
but the quality of information is always excellent.
Throughout the book, Alessandro gently guides the reader, building up from the
basics to advanced concepts. With the examples and companion code, practically
minded readers are able to get examples working quickly, and from there to adapt
them for their own needs. You will finish this book armed with a variety of practical
tools at your disposal and, if you like, some dirt under your fingernails. You will be
ready to extract graph features to make your existing models perform better today,
and you’ll be equipped to work natively with graphs tomorrow. I promise it’s going to
be a wonderful journey.
—DR. JIM WEBBER, CHIEF SCIENTIST @ NEO4J
Other documents randomly have
different content
PLATE XCV
Indian Tobacco.
Lobelia inflata. Lobelia Family.
Hog Pea-nut.
Amphicarpæa monoica. Pulse Family (p. 16).
And in and out among this luxuriant growth twist the slender stems
of the ill-named hog pea-nut, its delicate lilac blossoms nodding
from the coarse stalks of the golden-rods and iron-weeds or blending
with the purple asters.
This plant bears flowers of two kinds: the upper ones are perfect,
but apparently useless, as they seldom ripen fruit; while the lower or
subterranean ones are without petals or attractiveness of
appearance, but yield eventually at least one large ripe seed.
PLATE XCVI
Beach Pea.
Lathyrus maritimus. Pulse Family (p. 16).
About one foot high, or more. Stem.—Stout. Leaves.—Divided into from three
to five pairs of thick oblong leaflets. Flowers.—Papilionaceous, large, purple,
clustered.
The deep-hued flowers of this stout plant are commonly found
along the sand-hills of the seashore, and also on the shores of the
Great Lakes, blooming in early summer. Both flowers and leaves are
at once recognized as belonging to the Pulse family.
——— ———
Strophostyles angulosa. Pulse Family (p. 16).
Blue Vetch.
Vicia cracca. Pulse Family (p. 16).
Chicory. Succory.
Cichorium Intybus. Composite Family (p. 13).
CHICORY.—C. Intybus.
Iron-weed.
Vernonia Noveboracensis. Composite Family (p. 13).
Blazing Star.
Liatris scariosa. Composite Family (p. 13).
Common Dittany.
Cunila Mariana. Mint Family (p. 16).
Closed Gentian.
Gentiana Andrewsii. Gentian Family.
Five-flowered Gentian.
Gentiana quinqueflora. Gentian Family.
Fringed Gentian.
Gentiana crinita. Gentian Family.
for the fringed gentian is fickle in its habits, and the fact that we have
located it one season does not mean that we will find it in the same
place the following year; being a biennial, with seeds that are easily
washed away, it is apt to change its haunts from time to time. So our
search for this plant is always attended with the charm of
uncertainty. Once having ferreted out its new abiding-place,
however, we can satiate ourselves with its loveliness, which it usually
lavishes unstintingly upon the moist meadows which it has elected to
honor.
Thoreau describes its color as “such a dark blue! surpassing that
of the male bluebird’s back!” My experience has been that the flowers
which grow in the shade are of a clear pure azure, “Heaven’s own
blue,” as Bryant claims; while those which are found in open, sunny
meadows may be justly said to vie with the back of the male bluebird.
If the season has been a mild one we shall perhaps find a few
blossoms lingering into November, but the plant is probably blighted
by a severe frost, although Miss Emily Dickinson’s little poem voices
another opinion:
· · · · ·
The purplish shell-like leaf, which curls about the tiny flowers
which are thus hidden from view, is a rather grewsome-looking
object, suggestive of a great snail when it lifts itself fairly above its
muddy bed. When one sees it grouped with brother-cabbages it is
easy to understand why a nearly allied species, which abounds along
the Italian Riviera, should be entitled “Cappucini” by the neighboring
peasants, for the bowed, hooded appearance of these plants might
easily suggest the cowled Capuchins.
It seems unfortunate that our earliest spring flower (for such it
undoubtedly is) should possess so unpleasant an odor as to win for
itself the unpoetic title of skunk cabbage. There is also some
incongruity in the heading of the great floral procession of the year
by the minute hidden blossoms of this plant. That they are enabled to
survive the raw March winds which are rampant when they first
appear is probably due to the protection afforded them by the
leathery leaf or spathe. When the true leaves unfold they mark the
wet woods and meadows with bright patches of rich foliage, which
with that of the hellebore, flash constantly into sight as we travel
through the country in April.
It is interesting to remember that the skunk cabbage is nearly
akin to the spotless calla lily, the purple-mottled spathe of the one
answering to the snowy petal-like leaf of the other. Meehan tells us
that the name bear-weed was given to the plant by the early Swedish
settlers in the neighborhood of Philadelphia. It seems that the bears
greatly relished this early green, which Meehan remarks “must have
been a hot morsel, as the juice is acrid, and is said to possess some
narcotic power, while that of the root, when chewed, causes the
eyesight to grow dim.”
Wild Ginger.
Asarum Canadense. Birthwort Family.