Download - How the power of graphs helps deliver Packt's strategic vision

Transcript
Page 1: How the power of graphs helps deliver Packt's strategic vision

How the Power of Graphs Help Packt Deliver our Strategic Vision

Greg RobertsTwitter: @GregData

How graphs have helped us learn more about our market than we previously

thought possible.

Page 2: How the power of graphs helps deliver Packt's strategic vision

Who am I?Background in Physics and Maths

Joined Packt after graduating

Worked in products before moving into marketing

Page 3: How the power of graphs helps deliver Packt's strategic vision

Packt PublishingSoftware textbook publishing company

Over 3,500 BooksOver 150 VideosOver 6,000 Blogs and Articles

Lots of data to analyse!

Focus on PracticalityActionable KnowledgeEmerging technologies

Subscription platform: Packtlibover 10,000 active users

Page 4: How the power of graphs helps deliver Packt's strategic vision

Upsell Recommendations - VBA● Basket Analysis● Affinity matrix in

Excel● VBA Macro (gross)

Analyse one month of data: 3 minutes

Page 5: How the power of graphs helps deliver Packt's strategic vision

Upsell Recommendations - Vanilla.py● Basket Analysis● Affinity matrix in Numpy array● Optimise to one pass-through

Analyse one month of data: 3 seconds

Page 6: How the power of graphs helps deliver Packt's strategic vision

Upsell Recommendations - Neo4j● Baskets are

Nodes● Affinity matrix

is a Traversal● Already

optimised!!

Analyse onemonth of data: 30 milliseconds

Page 7: How the power of graphs helps deliver Packt's strategic vision

Recommendations are just the beginning

Graphs are an amazing tool for thinking about dataEverything’s a graph

Talk StructureThe data modelInto ProductionApplicationsThe future

Page 8: How the power of graphs helps deliver Packt's strategic vision

What do we know so far?Some products are related to others…...

What does that mean?

Page 9: How the power of graphs helps deliver Packt's strategic vision

Content Filtering - What’s it all about?

● Requires robust metadata

Takes Cost / Time / Resource / Errors

Automate!

How do you automate metadata generation?

Page 10: How the power of graphs helps deliver Packt's strategic vision

Stick it all in the graph!

>10M questions~60k distinct tagsVast coverageReal world usesExcellent API!

Generating a Topic Network

Page 11: How the power of graphs helps deliver Packt's strategic vision

StackOverflow.com

Page 12: How the power of graphs helps deliver Packt's strategic vision

Generating the metadata

Text Extraction

Tag Extraction

Page 13: How the power of graphs helps deliver Packt's strategic vision

Getting More Information: tfidf

Page 14: How the power of graphs helps deliver Packt's strategic vision

Tf_idf : Gives more information!

Page 15: How the power of graphs helps deliver Packt's strategic vision
Page 16: How the power of graphs helps deliver Packt's strategic vision

Moving to an Ontology

Page 17: How the power of graphs helps deliver Packt's strategic vision

What have we achieved?Model so far:

Customer touchpointsAll Content & metadataTopics and their dependencies

How do you add value?

Page 18: How the power of graphs helps deliver Packt's strategic vision

We need to go deeper

Page 19: How the power of graphs helps deliver Packt's strategic vision

Learning Neo4J (again)

Page 20: How the power of graphs helps deliver Packt's strategic vision

Python Machine Learning

Page 21: How the power of graphs helps deliver Packt's strategic vision

Spreading ActivationPython

Machine Learning

KerasScikit-Learn

0.6 0.5

Python

0.2

Spread S

pread

0.8

GPU0.4

Page 22: How the power of graphs helps deliver Packt's strategic vision
Page 23: How the power of graphs helps deliver Packt's strategic vision

How do people consume textbooks?

Page 24: How the power of graphs helps deliver Packt's strategic vision

What have we achieved?Graph Contains:

All content down to the page levelTopics (Stack Overflow)Key Concepts (Ontology)Topic RelationshipsAll touchpointsContent Consumption

Let’s put it into action

Page 25: How the power of graphs helps deliver Packt's strategic vision

Production Environment

Page 26: How the power of graphs helps deliver Packt's strategic vision

Actual Production Environment

Page 27: How the power of graphs helps deliver Packt's strategic vision

Everything is a recommendation

Page 28: How the power of graphs helps deliver Packt's strategic vision

Tech Pages

● Automatic Categorisation● Dynamic filtering

● Drives discovery● Boosts engagement

Page 29: How the power of graphs helps deliver Packt's strategic vision

Customer Profiles

Greg

PythonVBA

Excel

Sigma.js

Neo4j

pandas

?

Greg

PythonVBA

Excel

Sigma.js

Neo4j

Page 30: How the power of graphs helps deliver Packt's strategic vision

Customer Profiles

Ted

RVBA

Excel

Linkurious

Neo4j

RStudio

Apache Spark

Page 31: How the power of graphs helps deliver Packt's strategic vision

The FutureGraph Based Search

FlexiblePowerfulPersonalised

Modularised ContentFocusedConciseBespoke learning paths

Skill MappingProgression TrackingPeer ComparisonCareer development

Page 32: How the power of graphs helps deliver Packt's strategic vision

Everything is a GraphThinking with graphs helps you understand your data better.

Graphs are a natural way of thinking about connected data

Extensible Schema allows for rapid iteration of models

Performance allows you to focus on the important problems