SlideShare a Scribd company logo
Motivation
• Business: Selling products, movies, papers
• Research: Baseline for improvements.
• Personal uses:
• Recommend a song from your own music library
Input and Outputs
• Two relations: User and Products
• Input: User actions
• Buy
• View
• Rate
• Can there be any other actions?
• Output: Product suggestions
• Other users also viewed/bought/rated good.
• What are the best products for this user?
• Search engine analogy.
The Amazon Analogy
• Product independent.
• Product dependent.
Easyrec: Open Source Recommender Engine
• http://www.easyrec.org/
• Can be used in two ways:
• Download a copy and run in localhost.
• Use the easyrec server.
• Use the REST API to integrate with your site.
• API pros and cons:
• Don’t need to bother about computation power.
• Very easy for prototyping.
• Data privacy (if you are running on easyrec server).
• Not flexible enough for fine grained customization.
API: Getting Started
• Create an user account, get a token.
• Create a “tenant id”: url for your website/your home
computer/anything.
• “tenant-id” and token combined work as a primary key.
• Any call to the easyrec must contain these two parameters.
API: Input Your Data
• Input options:
• View: The user has viewed this item.
• Buy: The user has bought this item.
• Rate: The user has rated this item.
• You can also define your own “action”
• Sample API calls:
• http://easyrec.sourceforge.net/wiki/index.php?title=REST_API_v0.98
API: Get Recommendations
• Other users also viewed:
• Parameter: item id.
• Other users also bought:
• Parameter: item id.
• Items rated good by other users:
• Parameter: item id.
• Users who bought this item rated these items good.
• Recommendations for user:
• Parameter: user id.
API: Rules, Clustering and Community Ranking
• Rules:
• You can write your own rules which will associate two items (users who rated
item A high, also bought item B).
• Rules can not be written between an user and an item.
• Clustering:
• You can create clusters of items (laptop/books/songs)
• You can get all items in a cluster.
• Community ranking:
• Items liked by/bought by/ rated by most users.
Conclusion
• An open source recommender system which can be readily deployed
in a small e-commerce site.
• Not much flexible:
• You might want to recommend items in a cluster based on user history on
that cluster.
• You want to develop a separate ranking function.
• Only collaborative filtering: no content based recommendation.
• Real sites have used this: http://www.flimmit.com. (See a
recommendation here. )

More Related Content

What's hot (15)

PPTX
Building Modern Web Applications with ASP.NET5
Brij Mishra
 
PDF
JOSA TechTalks - Compilers, Transpilers, and Why You Should Care
Jordan Open Source Association
 
PPTX
Getting Started with ASP.NET 5
Brij Mishra
 
PPTX
10 tips to make your ASP.NET Apps Faster
Brij Mishra
 
PDF
Elasticsearch at Automattic
Greg Brown
 
PDF
Sencha and Spring (Spring 2GX 2013)
Sencha
 
PPTX
Enhance WordPress Search Using Sphinx
Roshan Bhattarai
 
PPTX
ASP.NET MVC - Latest & Greatest So Far
Lohith Goudagere Nagaraj
 
PDF
Building Beautiful REST APIs with ASP.NET Core
Stormpath
 
PPTX
PluginBasicsWCNYC2014
Kiko Doran
 
PPTX
Hard Coding as a design approach
Oren Eini
 
PPTX
Web Application Frameworks (WAF)
Ako Kaman
 
PDF
Postman
Igor Shubovych
 
PDF
Being With Rails App For 3 Years
deeeki
 
PDF
GraphQL Story: Intro To GraphQL
Riza Fahmi
 
Building Modern Web Applications with ASP.NET5
Brij Mishra
 
JOSA TechTalks - Compilers, Transpilers, and Why You Should Care
Jordan Open Source Association
 
Getting Started with ASP.NET 5
Brij Mishra
 
10 tips to make your ASP.NET Apps Faster
Brij Mishra
 
Elasticsearch at Automattic
Greg Brown
 
Sencha and Spring (Spring 2GX 2013)
Sencha
 
Enhance WordPress Search Using Sphinx
Roshan Bhattarai
 
ASP.NET MVC - Latest & Greatest So Far
Lohith Goudagere Nagaraj
 
Building Beautiful REST APIs with ASP.NET Core
Stormpath
 
PluginBasicsWCNYC2014
Kiko Doran
 
Hard Coding as a design approach
Oren Eini
 
Web Application Frameworks (WAF)
Ako Kaman
 
Being With Rails App For 3 Years
deeeki
 
GraphQL Story: Intro To GraphQL
Riza Fahmi
 

Viewers also liked (18)

PDF
TEMA 3 , ACT PARTE 2
leticiasonia
 
PPT
Salmos e hinos 472
rafael gomide
 
PDF
Test PDF 7
meducationdotnet
 
PPTX
Gisela morales polo a tierra
alexandra giraldo
 
PPTX
Location Intelligence for B2B Sales & Marketing
eSpatial
 
PDF
Dark Souls
Karyho
 
PDF
Resultados campeonato de madrid absoluto y adaptado
JAVIER ORÁN
 
PDF
Coding 100-session-slides
Cisco DevNet
 
PDF
Initiative Startup Slovenia Brochure
Blaz Kos
 
PDF
IgY Exec Summary Jan 7 '16
David Fyhrie
 
DOC
Kris Dahlquist- Resume
Kris Dahlquist
 
PPT
Drugs
iesjcbaroja
 
PPT
Experienţa în cooperare peste hotare şi în Moldova
ADR Nord
 
PPTX
Unit 4 economic nuts and bolts packet
Heather Cooper
 
PPT
Tauro
TeeReeSa
 
PPTX
Tauro signo del zodiaco
pablorg77
 
PPT
Protestant reformation
Heather Cooper
 
PPTX
DH2012_Bellamy
Craig Bellamy
 
TEMA 3 , ACT PARTE 2
leticiasonia
 
Salmos e hinos 472
rafael gomide
 
Test PDF 7
meducationdotnet
 
Gisela morales polo a tierra
alexandra giraldo
 
Location Intelligence for B2B Sales & Marketing
eSpatial
 
Dark Souls
Karyho
 
Resultados campeonato de madrid absoluto y adaptado
JAVIER ORÁN
 
Coding 100-session-slides
Cisco DevNet
 
Initiative Startup Slovenia Brochure
Blaz Kos
 
IgY Exec Summary Jan 7 '16
David Fyhrie
 
Kris Dahlquist- Resume
Kris Dahlquist
 
Experienţa în cooperare peste hotare şi în Moldova
ADR Nord
 
Unit 4 economic nuts and bolts packet
Heather Cooper
 
Tauro
TeeReeSa
 
Tauro signo del zodiaco
pablorg77
 
Protestant reformation
Heather Cooper
 
DH2012_Bellamy
Craig Bellamy
 
Ad

Similar to Rest api to integrate with your site (20)

PPTX
EnterpriseSearch
Lieben Kunnumpuram
 
PDF
Hey My Web App is Slow Where is the Problem
ColdFusionConference
 
PDF
Hey! My website is slow where is the problem?
devObjective
 
PDF
Hey my web app is slow where is the problem
ColdFusionConference
 
PDF
Riding the Edge with Ember.js
aortbals
 
PPTX
Introduction to Open Source, Apache and Apache Way
Srinath Perera
 
PDF
Software design with Domain-driven design
Allan Mangune
 
PPT
GDD Moscow - Open Social
Chris Chabot
 
PPTX
Golden Rules of API Design
David Koelle
 
PPTX
Guide to open source
Javier Perez
 
PDF
Lipstick on a Pig: Integrated Library Systems
Dorothea Salo
 
PPTX
Techorama 2022 - Adventures of building Promitor, an open-source product
Tom Kerkhove
 
PDF
166 sspcc1 b_newman
Society for Scholarly Publishing
 
PDF
Designing recommender system for your application
孜羲 顏
 
PDF
The Apache Way
Evans Ye
 
PDF
Prototyping like it is 2022
Michael Yagudaev
 
KEY
Beta testing iPhone apps
Shawn Grimes
 
PPTX
WP101 - Themes and Plugins
Joe Querin
 
KEY
CodeIgniter for Startups, cicon2010
Joel Gascoigne
 
PPTX
WordCamp Kent 2019 - WP 101: Themes & Plugins: What are they, and where do I ...
Joe Querin
 
EnterpriseSearch
Lieben Kunnumpuram
 
Hey My Web App is Slow Where is the Problem
ColdFusionConference
 
Hey! My website is slow where is the problem?
devObjective
 
Hey my web app is slow where is the problem
ColdFusionConference
 
Riding the Edge with Ember.js
aortbals
 
Introduction to Open Source, Apache and Apache Way
Srinath Perera
 
Software design with Domain-driven design
Allan Mangune
 
GDD Moscow - Open Social
Chris Chabot
 
Golden Rules of API Design
David Koelle
 
Guide to open source
Javier Perez
 
Lipstick on a Pig: Integrated Library Systems
Dorothea Salo
 
Techorama 2022 - Adventures of building Promitor, an open-source product
Tom Kerkhove
 
Designing recommender system for your application
孜羲 顏
 
The Apache Way
Evans Ye
 
Prototyping like it is 2022
Michael Yagudaev
 
Beta testing iPhone apps
Shawn Grimes
 
WP101 - Themes and Plugins
Joe Querin
 
CodeIgniter for Startups, cicon2010
Joel Gascoigne
 
WordCamp Kent 2019 - WP 101: Themes & Plugins: What are they, and where do I ...
Joe Querin
 
Ad

More from Hoang Nguyen (20)

PPTX
Smm and caching
Hoang Nguyen
 
PPTX
Optimizing shared caches in chip multiprocessors
Hoang Nguyen
 
PPTX
How analysis services caching works
Hoang Nguyen
 
PPTX
Hardware managed cache
Hoang Nguyen
 
PPTX
Directory based cache coherence
Hoang Nguyen
 
PPTX
Cache recap
Hoang Nguyen
 
PPTX
Python your new best friend
Hoang Nguyen
 
PPTX
Python language data types
Hoang Nguyen
 
PPTX
Python basics
Hoang Nguyen
 
PPTX
Programming for engineers in python
Hoang Nguyen
 
PPTX
Learning python
Hoang Nguyen
 
PPTX
Extending burp with python
Hoang Nguyen
 
PPTX
Cobol, lisp, and python
Hoang Nguyen
 
PPT
Object oriented programming using c++
Hoang Nguyen
 
PPTX
Object oriented analysis
Hoang Nguyen
 
PPTX
Object model
Hoang Nguyen
 
PPTX
Data structures and algorithms
Hoang Nguyen
 
PPT
Data abstraction the walls
Hoang Nguyen
 
PPT
Data abstraction and object orientation
Hoang Nguyen
 
PPT
Classes and data abstraction
Hoang Nguyen
 
Smm and caching
Hoang Nguyen
 
Optimizing shared caches in chip multiprocessors
Hoang Nguyen
 
How analysis services caching works
Hoang Nguyen
 
Hardware managed cache
Hoang Nguyen
 
Directory based cache coherence
Hoang Nguyen
 
Cache recap
Hoang Nguyen
 
Python your new best friend
Hoang Nguyen
 
Python language data types
Hoang Nguyen
 
Python basics
Hoang Nguyen
 
Programming for engineers in python
Hoang Nguyen
 
Learning python
Hoang Nguyen
 
Extending burp with python
Hoang Nguyen
 
Cobol, lisp, and python
Hoang Nguyen
 
Object oriented programming using c++
Hoang Nguyen
 
Object oriented analysis
Hoang Nguyen
 
Object model
Hoang Nguyen
 
Data structures and algorithms
Hoang Nguyen
 
Data abstraction the walls
Hoang Nguyen
 
Data abstraction and object orientation
Hoang Nguyen
 
Classes and data abstraction
Hoang Nguyen
 

Recently uploaded (20)

PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 

Rest api to integrate with your site

  • 1. Motivation • Business: Selling products, movies, papers • Research: Baseline for improvements. • Personal uses: • Recommend a song from your own music library
  • 2. Input and Outputs • Two relations: User and Products • Input: User actions • Buy • View • Rate • Can there be any other actions? • Output: Product suggestions • Other users also viewed/bought/rated good. • What are the best products for this user? • Search engine analogy.
  • 3. The Amazon Analogy • Product independent. • Product dependent.
  • 4. Easyrec: Open Source Recommender Engine • http://www.easyrec.org/ • Can be used in two ways: • Download a copy and run in localhost. • Use the easyrec server. • Use the REST API to integrate with your site. • API pros and cons: • Don’t need to bother about computation power. • Very easy for prototyping. • Data privacy (if you are running on easyrec server). • Not flexible enough for fine grained customization.
  • 5. API: Getting Started • Create an user account, get a token. • Create a “tenant id”: url for your website/your home computer/anything. • “tenant-id” and token combined work as a primary key. • Any call to the easyrec must contain these two parameters.
  • 6. API: Input Your Data • Input options: • View: The user has viewed this item. • Buy: The user has bought this item. • Rate: The user has rated this item. • You can also define your own “action” • Sample API calls: • http://easyrec.sourceforge.net/wiki/index.php?title=REST_API_v0.98
  • 7. API: Get Recommendations • Other users also viewed: • Parameter: item id. • Other users also bought: • Parameter: item id. • Items rated good by other users: • Parameter: item id. • Users who bought this item rated these items good. • Recommendations for user: • Parameter: user id.
  • 8. API: Rules, Clustering and Community Ranking • Rules: • You can write your own rules which will associate two items (users who rated item A high, also bought item B). • Rules can not be written between an user and an item. • Clustering: • You can create clusters of items (laptop/books/songs) • You can get all items in a cluster. • Community ranking: • Items liked by/bought by/ rated by most users.
  • 9. Conclusion • An open source recommender system which can be readily deployed in a small e-commerce site. • Not much flexible: • You might want to recommend items in a cluster based on user history on that cluster. • You want to develop a separate ranking function. • Only collaborative filtering: no content based recommendation. • Real sites have used this: http://www.flimmit.com. (See a recommendation here. )