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

PPTX
Api Design Anti-Patterns
PPTX
Do's and Don'ts of APIs
PDF
Google APIs for NSBM Students
PPT
Avninfosoft Seo strategy for 2014
PPTX
WordCamp Kent 2019 - WP 101: Themes & Plugins: What are they, and where do I ...
PDF
Getting Predictable - Pragmatic Approach for Mobile Development - Devday.lk ...
PPTX
Workbench: The Developer Tool for Admins
PDF
Josh Tallent
Api Design Anti-Patterns
Do's and Don'ts of APIs
Google APIs for NSBM Students
Avninfosoft Seo strategy for 2014
WordCamp Kent 2019 - WP 101: Themes & Plugins: What are they, and where do I ...
Getting Predictable - Pragmatic Approach for Mobile Development - Devday.lk ...
Workbench: The Developer Tool for Admins
Josh Tallent

Viewers also liked (20)

PPTX
Api crash
PPTX
Cache recap
PPTX
Extending burp with python
PPTX
Programming for engineers in python
PPTX
Inheritance
PPTX
Object oriented programming
PPTX
Learning python
PPTX
Cobol, lisp, and python
PPTX
Crypto passport authentication
PPTX
Learn ruby intro
PPTX
Data structures and algorithms
PPTX
Abstraction file
PPTX
Python basics
PPT
Access data connection
PPTX
Python language data types
PPT
Poo java
PPTX
Python your new best friend
PPT
Stack queue
PPT
Xml and webdata
PPTX
Behaviour drivendevelopment
Api crash
Cache recap
Extending burp with python
Programming for engineers in python
Inheritance
Object oriented programming
Learning python
Cobol, lisp, and python
Crypto passport authentication
Learn ruby intro
Data structures and algorithms
Abstraction file
Python basics
Access data connection
Python language data types
Poo java
Python your new best friend
Stack queue
Xml and webdata
Behaviour drivendevelopment
Ad

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

PDF
IRJET- Rest API for E-Commerce Site
PDF
Web and Android Application for Comparison of E-Commerce Products
PDF
Api's and ember js
PDF
REST full API Design
PDF
IRJET- Multi Design - Pattern React Application with Django Backend
PDF
A recommendation engine for your applications phpday
PDF
Web 13 | REST API
PPTX
Raml part 1
PDF
Amsterdam php create a restful api
PPTX
RESTful services Design Lab
PPTX
REST and RESTful Services
PPTX
Thinking Serverless (AWS re:Invent 2019 chalk talk SVS213). Solutions slides.
PPTX
Recommendations
PDF
Designing your API Server for mobile apps
PDF
5 Anti-Patterns in Api Design - NDC London 2016
PPTX
RESTful design
PPTX
Building Software Backend (Web API)
PDF
zendframework2 restful
PPTX
API Design Tour: Digital River
KEY
Api development with rails
IRJET- Rest API for E-Commerce Site
Web and Android Application for Comparison of E-Commerce Products
Api's and ember js
REST full API Design
IRJET- Multi Design - Pattern React Application with Django Backend
A recommendation engine for your applications phpday
Web 13 | REST API
Raml part 1
Amsterdam php create a restful api
RESTful services Design Lab
REST and RESTful Services
Thinking Serverless (AWS re:Invent 2019 chalk talk SVS213). Solutions slides.
Recommendations
Designing your API Server for mobile apps
5 Anti-Patterns in Api Design - NDC London 2016
RESTful design
Building Software Backend (Web API)
zendframework2 restful
API Design Tour: Digital River
Api development with rails
Ad

More from Luis Goldster (20)

PPTX
Ruby on rails evaluation
PPTX
Design patterns
PPT
Lisp and scheme i
PPT
Ado.net & data persistence frameworks
PPTX
Multithreading models.ppt
PPTX
Business analytics and data mining
PPTX
Big picture of data mining
PPTX
Data mining and knowledge discovery
PPTX
Directory based cache coherence
PPTX
Hardware managed cache
PPTX
How analysis services caching works
PPT
Abstract data types
PPTX
Optimizing shared caches in chip multiprocessors
PPTX
Object model
PPTX
Object oriented analysis
PPT
Abstract class
PPTX
Concurrency with java
PPTX
Cobol, lisp, and python
PPTX
Object oriented programming
PPTX
Learning python
Ruby on rails evaluation
Design patterns
Lisp and scheme i
Ado.net & data persistence frameworks
Multithreading models.ppt
Business analytics and data mining
Big picture of data mining
Data mining and knowledge discovery
Directory based cache coherence
Hardware managed cache
How analysis services caching works
Abstract data types
Optimizing shared caches in chip multiprocessors
Object model
Object oriented analysis
Abstract class
Concurrency with java
Cobol, lisp, and python
Object oriented programming
Learning python

Recently uploaded (20)

PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
DOCX
search engine optimization ppt fir known well about this
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
CloudStack 4.21: First Look Webinar slides
PPT
What is a Computer? Input Devices /output devices
PDF
Unlock new opportunities with location data.pdf
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
Modernising the Digital Integration Hub
PDF
Architecture types and enterprise applications.pdf
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Hindi spoken digit analysis for native and non-native speakers
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Developing a website for English-speaking practice to English as a foreign la...
Zenith AI: Advanced Artificial Intelligence
Final SEM Unit 1 for mit wpu at pune .pptx
search engine optimization ppt fir known well about this
sustainability-14-14877-v2.pddhzftheheeeee
CloudStack 4.21: First Look Webinar slides
What is a Computer? Input Devices /output devices
Unlock new opportunities with location data.pdf
A novel scalable deep ensemble learning framework for big data classification...
Modernising the Digital Integration Hub
Architecture types and enterprise applications.pdf
Getting started with AI Agents and Multi-Agent Systems
Univ-Connecticut-ChatGPT-Presentaion.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
DP Operators-handbook-extract for the Mautical Institute
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
WOOl fibre morphology and structure.pdf for textiles
Hindi spoken digit analysis for native and non-native speakers

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. )