SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
ⓒ 2017 by Bitnine Co, Ltd. All Rights Reserved. Bitnine Global Company ConfidentialBitnine Global Company Confidential
May 2018Joe Fagan
Snr Dir Presales EMEA
www.bitnine.net
www.bitnine.net
Basic Recommendation Engine
AGENDA – AgensGraph Introduction
Agenda
Introduction to Recommendation Engines
Collaborative based filtering approach
Some arithmetic
Importing data into AgensGraph
Creating graph, ratings and similarity edges
Creating recommendations edges
Further enhancements to recommendation Engine.
What is an RS?
Outcome:
 15%-35% increase in sales
 30%-80% increase in screen time
Greater ROI than any other investment
A Recommendation System (RS) finds, for each user, the
‘product’ most likely to be relevant.
Playlist: •Youtube, Netflix
Content: •Facebook, Twitter
People: •LinkedIn, Badoo
Product: •Amazon, Alibaba
The first RS was implemented in 1994. Today 35% of purchases on Amazon and
75% of what we watch on Netflix comes from RSs. Source
Alternative Outcome: Polarisation
Analytics Journey.
| 4
Descriptive
Analytics
Sum, Avg,
Patterns
Sell more
hats in winter
Diagnostic
Analytics
Correlations
and
reasoning
Cold = more
hats
Predictive
Analytics
Describe the
future
Next winter =
more hats
Prescriptive
Analytics
Write the
future
Make it
colder ->
more hats
- $ $$$ $$$
Value to business
RS lives somewhere
between predictive
and prescriptive
analytics
2 basic principles
| 5
Alice and Bob buy blue and green
Alice buys yellow
Recommend yellow to Bob
Bob buys blue
Blue is similar to yellow
=> Recommend yellow to Bob
Collaborative Filtering Content Based Filtering
Alice Bob
Similar
Similar
Bob
0.5x2 + 0.2x4 + 0.6x5 / .5+.2+.6 = 4.8 / 1.3 = 3.7
Ratings Matrix and Similarity
| 6
P1 P2 P3 P4 P5 P6 P7 P8 P9 P10
C1 3 4 2 4 3 5 3 2
C2 5 2 1 2 5 3
C3 1 5 1
C4 1 2 ?? 3 2 5 3 3
C5 4 1 2 5 2
C6 5 4 5 1
C7 4 5 5 3 5 4 1 4
C8 1 3 1 5 4 2 4 5
A ratings matrix is the starting point.
The ratings can be explicit (actual ratings) or implicit (purchases, frequency of purchases,
timeline)
The challenge is to predict all the blank entries. EG How will C4 feel about P3?
To answer this we consider how people similar to C4 felt about P3.
There are many ways to calculate similarity. Accepted standard is cosine similarity (next slide)
Ratings: Cust, Product
Similarity: Cust, Cust
C1 C2 C3 C4 C5 C6 C7 C8
C1 0.7 0.6 0.5 0.4 0.4 0.6 0.6
C2 0.7 0.2 0.3 0.6 0.5 0.6 0.5
C3 0.6 0.2 0.2 0.2 0.2 0.1
C4 0.5 0.3 0.2 0.2 0.7 0.6 0.8
C5 0.4 0.6 0.2 0.3 0.6 0.6
C6 0.4 0.5 0.2 0.7 0.3 0.5 0.6
C7 0.6 0.6 0.2 0.6 0.6 0.5 0.6
C8 0.6 0.5 0.1 0.8 0.6 0.6 0.6
Once we know similarity, we want to favour the ratings of similar people and diminish the
influence of dissimilar people.
C5C1 C7
Once all missing ratings have been calculated for each customer, we pick the highest
calculated rating and recommend that product.
Cosine similarity
To measure similarity, place the customers as vectors in a vector space whose co-
ordinates are the ratings of the products.
Look at 2 vectors in just 3d (really, we’re in the dimensional space of the number of
products)
Similar customers point in similar directions. Measure the cosine of the angle
between the vectors.
Identical = Cos(0)=1, Orthogonal = Cos(90) = 0
Similarity = Cos(theta) = 3*5 + 4*0 + 2*0 / 5.4*5 = 0.56
| 7
1 2 3
P1 P2 P3 Len
A C1 3 4 2 5.4
B C2 5 0 0 5
= 0.56
For some mind-blowing graphics and explanation of topics in linear algebra on Youtube search 3Blue1Brown Linear Algebra
Cypher ASCII Art
| 8
cust
buys
prod
( ) - [ ] -> ()
( :cust ) - [ :buys ] -> ( :prod )
( xx :cust ) - [ r :buys ] -> ( y :prod )
( xx :cust {name: “C1” } ) - [ r :buys { qty: 4 } ] -> ( y :prod { p: “P1” } )
Base notation
Labels
Identifiers
Properties and Values
AgesnBrowser images
| 9
Meta Graph SimilarityRates
Further improvements
Use Cosine centrality on ratings
Avoids no rating = negative rating
Smooths harsh and easy raters
Categorize products
Calculate similarity by category
For consumables show products already purchased
For Books/Music show similar products
Factor in business preference for vendors/products/categories
Based on margin, stock, return rates, strategic direction
| 10
P1 P2 P3 P4 P5 P6 P7 P8 P9 P10
C1 -0.3 0.8 -1.3 0.8 -0.3 1.8 -0.3 -1.3
C2 2.0 -1.0 -2.0 -1.0 2.0
C3 -1.3 2.7 -1.3
C4 -1.7 -0.7 0.3 -0.7 2.3 0.3 0.3
C5 1.2 -1.8 -0.8 2.2 -0.8
C6 1.3 0.3 1.3 -2.8
C7 0.1 1.1 1.1 -0.9 1.1 0.1 -2.9 0.1
C8 -2.1 -0.1 -2.1 1.9 0.9 -1.1 0.9 1.9
Cosine Centrality ratings
F1
F2
F3
K1
K2
K3
P1
rec
Rec
Final
Product Factor
(Held in vertex)
Business Direction
Scaling factors
Adjustment to
recommendation
Final
recommendation
Example: F1 is stock, F2 is margin
• Business objective says reduce stock is
priority = Increase K1, reduce K2.
• Business says margin is #1 priority = reduce
K1, increase K2
• With enough data and A/B testing adjusting
K’s becomes a Machine Learning problem.
stock
margin
11
Thank you for your attention

Weitere ähnliche Inhalte

Was ist angesagt?

SLA CI Division Webinar: Using the Internet to Research Private Companies
SLA CI Division Webinar: Using the Internet to Research Private CompaniesSLA CI Division Webinar: Using the Internet to Research Private Companies
SLA CI Division Webinar: Using the Internet to Research Private Companies
August Jackson
 
Building new business models through big data dec 06 2012
Building new business models through big data   dec 06 2012Building new business models through big data   dec 06 2012
Building new business models through big data dec 06 2012
Aki Balogh
 
Panel: Powering Business Decision Making
Panel: Powering Business Decision MakingPanel: Powering Business Decision Making
Panel: Powering Business Decision Making
MRS
 

Was ist angesagt? (16)

Google knowledge graph
Google knowledge graphGoogle knowledge graph
Google knowledge graph
 
CSforum2011 London Marko Hurst-ProveContentValue
CSforum2011 London Marko Hurst-ProveContentValueCSforum2011 London Marko Hurst-ProveContentValue
CSforum2011 London Marko Hurst-ProveContentValue
 
Jboye2010 markohurst final_050510
Jboye2010 markohurst final_050510Jboye2010 markohurst final_050510
Jboye2010 markohurst final_050510
 
Marketing Research and Competitive Intelligence
Marketing Research and Competitive IntelligenceMarketing Research and Competitive Intelligence
Marketing Research and Competitive Intelligence
 
Data collection, processing & organization with USPA framework
Data collection, processing & organization with USPA frameworkData collection, processing & organization with USPA framework
Data collection, processing & organization with USPA framework
 
SLA CI Division Webinar: Using the Internet to Research Private Companies
SLA CI Division Webinar: Using the Internet to Research Private CompaniesSLA CI Division Webinar: Using the Internet to Research Private Companies
SLA CI Division Webinar: Using the Internet to Research Private Companies
 
Measure Camp Bucharest 2019 - Data Science Strategy & Structure - presentation
Measure Camp Bucharest 2019 - Data Science Strategy & Structure - presentationMeasure Camp Bucharest 2019 - Data Science Strategy & Structure - presentation
Measure Camp Bucharest 2019 - Data Science Strategy & Structure - presentation
 
Building new business models through big data dec 06 2012
Building new business models through big data   dec 06 2012Building new business models through big data   dec 06 2012
Building new business models through big data dec 06 2012
 
What the Heck is Big Data?
What the Heck is Big Data?What the Heck is Big Data?
What the Heck is Big Data?
 
How Graph Algorithms Answer your Business Questions in Banking and Beyond
How Graph Algorithms Answer your Business Questions in Banking and BeyondHow Graph Algorithms Answer your Business Questions in Banking and Beyond
How Graph Algorithms Answer your Business Questions in Banking and Beyond
 
BigData & Supply Chain: A "Small" Introduction
BigData & Supply Chain: A "Small" IntroductionBigData & Supply Chain: A "Small" Introduction
BigData & Supply Chain: A "Small" Introduction
 
IT and Procurement: Opportunities and Implementation of New Analytics Technol...
IT and Procurement: Opportunities and Implementation of New Analytics Technol...IT and Procurement: Opportunities and Implementation of New Analytics Technol...
IT and Procurement: Opportunities and Implementation of New Analytics Technol...
 
Panel: Powering Business Decision Making
Panel: Powering Business Decision MakingPanel: Powering Business Decision Making
Panel: Powering Business Decision Making
 
360 degree customer view
360 degree customer view360 degree customer view
360 degree customer view
 
Marko hurst jboye2011-deliverenterprisecs
Marko hurst jboye2011-deliverenterprisecsMarko hurst jboye2011-deliverenterprisecs
Marko hurst jboye2011-deliverenterprisecs
 
Big Data at #WADAY11
Big Data at #WADAY11 Big Data at #WADAY11
Big Data at #WADAY11
 

Ähnlich wie Develop A Basic Recommendation System using Cypher

Copyright © 2014 EMC Corporation. All rights reserved.Copy.docx
Copyright © 2014 EMC Corporation. All rights reserved.Copy.docxCopyright © 2014 EMC Corporation. All rights reserved.Copy.docx
Copyright © 2014 EMC Corporation. All rights reserved.Copy.docx
dickonsondorris
 
Steve Blank’s Petal Diagram vs. Rod King’s Value Engine Map: Visual Tools for...
Steve Blank’s Petal Diagram vs. Rod King’s Value Engine Map: Visual Tools for...Steve Blank’s Petal Diagram vs. Rod King’s Value Engine Map: Visual Tools for...
Steve Blank’s Petal Diagram vs. Rod King’s Value Engine Map: Visual Tools for...
Rod King, Ph.D.
 
Redleafdigital - How would you approach your first 3 months in the role to dr...
Redleafdigital - How would you approach your first 3 months in the role to dr...Redleafdigital - How would you approach your first 3 months in the role to dr...
Redleafdigital - How would you approach your first 3 months in the role to dr...
redleafdigital
 
mrkt354lecture4i-140209143215-phpapp02.pptx
mrkt354lecture4i-140209143215-phpapp02.pptxmrkt354lecture4i-140209143215-phpapp02.pptx
mrkt354lecture4i-140209143215-phpapp02.pptx
NeelamSheoliha2
 
Attribution modeling 101
Attribution modeling 101 Attribution modeling 101
Attribution modeling 101
OWOX BI
 

Ähnlich wie Develop A Basic Recommendation System using Cypher (20)

Copyright © 2014 EMC Corporation. All rights reserved.Copy.docx
Copyright © 2014 EMC Corporation. All rights reserved.Copy.docxCopyright © 2014 EMC Corporation. All rights reserved.Copy.docx
Copyright © 2014 EMC Corporation. All rights reserved.Copy.docx
 
How data visualization helps cpg industry
How data visualization helps cpg industryHow data visualization helps cpg industry
How data visualization helps cpg industry
 
What's Next: Cloudy with a chance of AI 3
What's Next: Cloudy with a chance of AI 3What's Next: Cloudy with a chance of AI 3
What's Next: Cloudy with a chance of AI 3
 
6 Steps to Building the Ultimate Integrated Marketing Framework with Productb...
6 Steps to Building the Ultimate Integrated Marketing Framework with Productb...6 Steps to Building the Ultimate Integrated Marketing Framework with Productb...
6 Steps to Building the Ultimate Integrated Marketing Framework with Productb...
 
Steve Blank’s Petal Diagram vs. Rod King’s Value Engine Map: Visual Tools for...
Steve Blank’s Petal Diagram vs. Rod King’s Value Engine Map: Visual Tools for...Steve Blank’s Petal Diagram vs. Rod King’s Value Engine Map: Visual Tools for...
Steve Blank’s Petal Diagram vs. Rod King’s Value Engine Map: Visual Tools for...
 
Building a Beer Recommender with Yhat (PAPIs.io - November 2014)
Building a Beer Recommender with Yhat (PAPIs.io - November 2014)Building a Beer Recommender with Yhat (PAPIs.io - November 2014)
Building a Beer Recommender with Yhat (PAPIs.io - November 2014)
 
Webinar: How to Setup a Product to Perform by Worldpay PM
Webinar: How to Setup a Product to Perform by Worldpay PMWebinar: How to Setup a Product to Perform by Worldpay PM
Webinar: How to Setup a Product to Perform by Worldpay PM
 
Redleafdigital - How would you approach your first 3 months in the role to dr...
Redleafdigital - How would you approach your first 3 months in the role to dr...Redleafdigital - How would you approach your first 3 months in the role to dr...
Redleafdigital - How would you approach your first 3 months in the role to dr...
 
Why the Balanced Scorecard is Good but Not Great: The BUSINESS MODEL STRATEGY...
Why the Balanced Scorecard is Good but Not Great: The BUSINESS MODEL STRATEGY...Why the Balanced Scorecard is Good but Not Great: The BUSINESS MODEL STRATEGY...
Why the Balanced Scorecard is Good but Not Great: The BUSINESS MODEL STRATEGY...
 
mrkt354lecture4i-140209143215-phpapp02.pptx
mrkt354lecture4i-140209143215-phpapp02.pptxmrkt354lecture4i-140209143215-phpapp02.pptx
mrkt354lecture4i-140209143215-phpapp02.pptx
 
Get Scrappy: Start Measuring Customer LTV With Digital
Get Scrappy: Start Measuring Customer LTV With DigitalGet Scrappy: Start Measuring Customer LTV With Digital
Get Scrappy: Start Measuring Customer LTV With Digital
 
E2E Life Cycle Intelligence & Channel Strategy @ TPC
E2E Life Cycle Intelligence & Channel Strategy @ TPCE2E Life Cycle Intelligence & Channel Strategy @ TPC
E2E Life Cycle Intelligence & Channel Strategy @ TPC
 
3 Advanced Google Shopping Strategies to Maximize Holiday Conversions
3 Advanced Google Shopping Strategies to Maximize Holiday Conversions3 Advanced Google Shopping Strategies to Maximize Holiday Conversions
3 Advanced Google Shopping Strategies to Maximize Holiday Conversions
 
Applied Machine Learning for Ranking Products in an Ecommerce Setting
Applied Machine Learning for Ranking Products in an Ecommerce SettingApplied Machine Learning for Ranking Products in an Ecommerce Setting
Applied Machine Learning for Ranking Products in an Ecommerce Setting
 
Attribution modeling 101
Attribution modeling 101 Attribution modeling 101
Attribution modeling 101
 
Attribution modeling 101, Mariia Bocheva
Attribution modeling 101, Mariia BochevaAttribution modeling 101, Mariia Bocheva
Attribution modeling 101, Mariia Bocheva
 
Adobe Business.pptx
Adobe Business.pptxAdobe Business.pptx
Adobe Business.pptx
 
Roadmap for Enterprise Graph Strategy
Roadmap for Enterprise Graph StrategyRoadmap for Enterprise Graph Strategy
Roadmap for Enterprise Graph Strategy
 
How to Build an Attribution Solution in 1 Day
How to Build an Attribution Solution in 1 DayHow to Build an Attribution Solution in 1 Day
How to Build an Attribution Solution in 1 Day
 
How to Build an Attribution Solution in 1 Day
How to Build an Attribution Solution in 1 DayHow to Build an Attribution Solution in 1 Day
How to Build an Attribution Solution in 1 Day
 

Mehr von Connected Data World

The years of the graph: The future of the future is here
The years of the graph: The future of the future is hereThe years of the graph: The future of the future is here
The years of the graph: The future of the future is here
Connected Data World
 
In Search of the Universal Data Model
In Search of the Universal Data ModelIn Search of the Universal Data Model
In Search of the Universal Data Model
Connected Data World
 
Graph Realities
Graph RealitiesGraph Realities
Graph Realities
Connected Data World
 
RAPIDS cuGraph – Accelerating all your Graph needs
RAPIDS cuGraph – Accelerating all your Graph needsRAPIDS cuGraph – Accelerating all your Graph needs
RAPIDS cuGraph – Accelerating all your Graph needs
Connected Data World
 
Elegant and Scalable Code Querying with Code Property Graphs
Elegant and Scalable Code Querying with Code Property GraphsElegant and Scalable Code Querying with Code Property Graphs
Elegant and Scalable Code Querying with Code Property Graphs
Connected Data World
 

Mehr von Connected Data World (20)

Systems that learn and reason | Frank Van Harmelen
Systems that learn and reason | Frank Van HarmelenSystems that learn and reason | Frank Van Harmelen
Systems that learn and reason | Frank Van Harmelen
 
Graph Abstractions Matter by Ora Lassila
Graph Abstractions Matter by Ora LassilaGraph Abstractions Matter by Ora Lassila
Graph Abstractions Matter by Ora Lassila
 
Κnowledge Architecture: Combining Strategy, Data Science and Information Arch...
Κnowledge Architecture: Combining Strategy, Data Science and Information Arch...Κnowledge Architecture: Combining Strategy, Data Science and Information Arch...
Κnowledge Architecture: Combining Strategy, Data Science and Information Arch...
 
How to get started with Graph Machine Learning
How to get started with Graph Machine LearningHow to get started with Graph Machine Learning
How to get started with Graph Machine Learning
 
Graphs in sustainable finance
Graphs in sustainable financeGraphs in sustainable finance
Graphs in sustainable finance
 
The years of the graph: The future of the future is here
The years of the graph: The future of the future is hereThe years of the graph: The future of the future is here
The years of the graph: The future of the future is here
 
From Taxonomies and Schemas to Knowledge Graphs: Parts 1 & 2
From Taxonomies and Schemas to Knowledge Graphs: Parts 1 & 2From Taxonomies and Schemas to Knowledge Graphs: Parts 1 & 2
From Taxonomies and Schemas to Knowledge Graphs: Parts 1 & 2
 
From Taxonomies and Schemas to Knowledge Graphs: Part 3
From Taxonomies and Schemas to Knowledge Graphs: Part 3From Taxonomies and Schemas to Knowledge Graphs: Part 3
From Taxonomies and Schemas to Knowledge Graphs: Part 3
 
In Search of the Universal Data Model
In Search of the Universal Data ModelIn Search of the Universal Data Model
In Search of the Universal Data Model
 
Graph in Apache Cassandra. The World’s Most Scalable Graph Database
Graph in Apache Cassandra. The World’s Most Scalable Graph DatabaseGraph in Apache Cassandra. The World’s Most Scalable Graph Database
Graph in Apache Cassandra. The World’s Most Scalable Graph Database
 
Enterprise Data Governance: Leveraging Knowledge Graph & AI in support of a d...
Enterprise Data Governance: Leveraging Knowledge Graph & AI in support of a d...Enterprise Data Governance: Leveraging Knowledge Graph & AI in support of a d...
Enterprise Data Governance: Leveraging Knowledge Graph & AI in support of a d...
 
Graph Realities
Graph RealitiesGraph Realities
Graph Realities
 
Powering Question-Driven Problem Solving to Improve the Chances of Finding Ne...
Powering Question-Driven Problem Solving to Improve the Chances of Finding Ne...Powering Question-Driven Problem Solving to Improve the Chances of Finding Ne...
Powering Question-Driven Problem Solving to Improve the Chances of Finding Ne...
 
Semantic similarity for faster Knowledge Graph delivery at scale
Semantic similarity for faster Knowledge Graph delivery at scaleSemantic similarity for faster Knowledge Graph delivery at scale
Semantic similarity for faster Knowledge Graph delivery at scale
 
Schema, Google & The Future of the Web
Schema, Google & The Future of the WebSchema, Google & The Future of the Web
Schema, Google & The Future of the Web
 
RAPIDS cuGraph – Accelerating all your Graph needs
RAPIDS cuGraph – Accelerating all your Graph needsRAPIDS cuGraph – Accelerating all your Graph needs
RAPIDS cuGraph – Accelerating all your Graph needs
 
Elegant and Scalable Code Querying with Code Property Graphs
Elegant and Scalable Code Querying with Code Property GraphsElegant and Scalable Code Querying with Code Property Graphs
Elegant and Scalable Code Querying with Code Property Graphs
 
From Knowledge Graphs to AI-powered SEO: Using taxonomies, schemas and knowle...
From Knowledge Graphs to AI-powered SEO: Using taxonomies, schemas and knowle...From Knowledge Graphs to AI-powered SEO: Using taxonomies, schemas and knowle...
From Knowledge Graphs to AI-powered SEO: Using taxonomies, schemas and knowle...
 
Graph for Good: Empowering your NGO
Graph for Good: Empowering your NGOGraph for Good: Empowering your NGO
Graph for Good: Empowering your NGO
 
What are we Talking About, When we Talk About Ontology?
What are we Talking About, When we Talk About Ontology?What are we Talking About, When we Talk About Ontology?
What are we Talking About, When we Talk About Ontology?
 

Kürzlich hochgeladen

Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
only4webmaster01
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
amitlee9823
 
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
gajnagarg
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
gajnagarg
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
amitlee9823
 
Just Call Vip call girls roorkee Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls roorkee Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls roorkee Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls roorkee Escorts ☎️9352988975 Two shot with one girl ...
gajnagarg
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
amitlee9823
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
amitlee9823
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
 
Just Call Vip call girls roorkee Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls roorkee Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls roorkee Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls roorkee Escorts ☎️9352988975 Two shot with one girl ...
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

Develop A Basic Recommendation System using Cypher

  • 1. ⓒ 2017 by Bitnine Co, Ltd. All Rights Reserved. Bitnine Global Company ConfidentialBitnine Global Company Confidential May 2018Joe Fagan Snr Dir Presales EMEA www.bitnine.net www.bitnine.net Basic Recommendation Engine
  • 2. AGENDA – AgensGraph Introduction Agenda Introduction to Recommendation Engines Collaborative based filtering approach Some arithmetic Importing data into AgensGraph Creating graph, ratings and similarity edges Creating recommendations edges Further enhancements to recommendation Engine.
  • 3. What is an RS? Outcome:  15%-35% increase in sales  30%-80% increase in screen time Greater ROI than any other investment A Recommendation System (RS) finds, for each user, the ‘product’ most likely to be relevant. Playlist: •Youtube, Netflix Content: •Facebook, Twitter People: •LinkedIn, Badoo Product: •Amazon, Alibaba The first RS was implemented in 1994. Today 35% of purchases on Amazon and 75% of what we watch on Netflix comes from RSs. Source Alternative Outcome: Polarisation
  • 4. Analytics Journey. | 4 Descriptive Analytics Sum, Avg, Patterns Sell more hats in winter Diagnostic Analytics Correlations and reasoning Cold = more hats Predictive Analytics Describe the future Next winter = more hats Prescriptive Analytics Write the future Make it colder -> more hats - $ $$$ $$$ Value to business RS lives somewhere between predictive and prescriptive analytics
  • 5. 2 basic principles | 5 Alice and Bob buy blue and green Alice buys yellow Recommend yellow to Bob Bob buys blue Blue is similar to yellow => Recommend yellow to Bob Collaborative Filtering Content Based Filtering Alice Bob Similar Similar Bob
  • 6. 0.5x2 + 0.2x4 + 0.6x5 / .5+.2+.6 = 4.8 / 1.3 = 3.7 Ratings Matrix and Similarity | 6 P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 C1 3 4 2 4 3 5 3 2 C2 5 2 1 2 5 3 C3 1 5 1 C4 1 2 ?? 3 2 5 3 3 C5 4 1 2 5 2 C6 5 4 5 1 C7 4 5 5 3 5 4 1 4 C8 1 3 1 5 4 2 4 5 A ratings matrix is the starting point. The ratings can be explicit (actual ratings) or implicit (purchases, frequency of purchases, timeline) The challenge is to predict all the blank entries. EG How will C4 feel about P3? To answer this we consider how people similar to C4 felt about P3. There are many ways to calculate similarity. Accepted standard is cosine similarity (next slide) Ratings: Cust, Product Similarity: Cust, Cust C1 C2 C3 C4 C5 C6 C7 C8 C1 0.7 0.6 0.5 0.4 0.4 0.6 0.6 C2 0.7 0.2 0.3 0.6 0.5 0.6 0.5 C3 0.6 0.2 0.2 0.2 0.2 0.1 C4 0.5 0.3 0.2 0.2 0.7 0.6 0.8 C5 0.4 0.6 0.2 0.3 0.6 0.6 C6 0.4 0.5 0.2 0.7 0.3 0.5 0.6 C7 0.6 0.6 0.2 0.6 0.6 0.5 0.6 C8 0.6 0.5 0.1 0.8 0.6 0.6 0.6 Once we know similarity, we want to favour the ratings of similar people and diminish the influence of dissimilar people. C5C1 C7 Once all missing ratings have been calculated for each customer, we pick the highest calculated rating and recommend that product.
  • 7. Cosine similarity To measure similarity, place the customers as vectors in a vector space whose co- ordinates are the ratings of the products. Look at 2 vectors in just 3d (really, we’re in the dimensional space of the number of products) Similar customers point in similar directions. Measure the cosine of the angle between the vectors. Identical = Cos(0)=1, Orthogonal = Cos(90) = 0 Similarity = Cos(theta) = 3*5 + 4*0 + 2*0 / 5.4*5 = 0.56 | 7 1 2 3 P1 P2 P3 Len A C1 3 4 2 5.4 B C2 5 0 0 5 = 0.56 For some mind-blowing graphics and explanation of topics in linear algebra on Youtube search 3Blue1Brown Linear Algebra
  • 8. Cypher ASCII Art | 8 cust buys prod ( ) - [ ] -> () ( :cust ) - [ :buys ] -> ( :prod ) ( xx :cust ) - [ r :buys ] -> ( y :prod ) ( xx :cust {name: “C1” } ) - [ r :buys { qty: 4 } ] -> ( y :prod { p: “P1” } ) Base notation Labels Identifiers Properties and Values
  • 9. AgesnBrowser images | 9 Meta Graph SimilarityRates
  • 10. Further improvements Use Cosine centrality on ratings Avoids no rating = negative rating Smooths harsh and easy raters Categorize products Calculate similarity by category For consumables show products already purchased For Books/Music show similar products Factor in business preference for vendors/products/categories Based on margin, stock, return rates, strategic direction | 10 P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 C1 -0.3 0.8 -1.3 0.8 -0.3 1.8 -0.3 -1.3 C2 2.0 -1.0 -2.0 -1.0 2.0 C3 -1.3 2.7 -1.3 C4 -1.7 -0.7 0.3 -0.7 2.3 0.3 0.3 C5 1.2 -1.8 -0.8 2.2 -0.8 C6 1.3 0.3 1.3 -2.8 C7 0.1 1.1 1.1 -0.9 1.1 0.1 -2.9 0.1 C8 -2.1 -0.1 -2.1 1.9 0.9 -1.1 0.9 1.9 Cosine Centrality ratings F1 F2 F3 K1 K2 K3 P1 rec Rec Final Product Factor (Held in vertex) Business Direction Scaling factors Adjustment to recommendation Final recommendation Example: F1 is stock, F2 is margin • Business objective says reduce stock is priority = Increase K1, reduce K2. • Business says margin is #1 priority = reduce K1, increase K2 • With enough data and A/B testing adjusting K’s becomes a Machine Learning problem. stock margin
  • 11. 11 Thank you for your attention