doppel.io is a hosted recommendation engine.
Please visit our website to know more about us.
Contact [email protected], if you find an issue.
Getting Started
Work in progress
Commands Reference
- List your users
- Create an user
- Get an user
- Save an user
- Update an user
- Delete an user
- Get ratings of an user
- Get a rating
- Save a rating
- Delete a rating
- Get a prediction
- Get recommendations for an user
- Get similar users
- Get similarity between users
- List your items
- Create an item
- Get an item
- Save an item
- Update an item
- Delete an item
- Get ratings of an item
- Get recommendations for an item
- Get similar items
- Get similarity between items
Return a list which contains the IDs of your users.
Example to list your users:
client.getUsers(function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content.users);
}
});
Create a new user and return its ID.
Example to create a new user and print its ID:
client.addUser(function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content.userID);
}
});
Return the user corresponding to the ID.
Example to retrieve the user 'myUserID':
client.getUser('myUserID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Save an user at a particular ID.
Example to save an user at the ID 'myUserID' with some ratings:
client.saveUser({'userID': 'myUserID', 'ratings': {'myItemID': 5}}, function(err, content) {
if(err) {
console.log(err);
}
});
Update an user at a particular ID.
Example to update an user at the ID 'myUserID' with new ratings:
client.updateUser({'userID': 'myUserID', 'ratings': {'myItemID': 2}}, function(err, content) {
if(err) {
console.log(err);
}
});
Delete a particular user.
Example to delete the user at the ID 'myUserID':
client.deleteUser('myUserID', function(err, content) {
if(err) {
console.log(err);
}
});
Get all the ratings of an user.
Example to retrieve the ratings of the user 'myUserID':
client.getUserRatings('myUserID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Get the rating of a particular user on a particular item.
Example to retrieve the rating of the user 'myUserID' on the item 'myItemID':
client.getRating('myUserID', 'myItemID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Get the rating of a particular user on a particular item.
Example to save the rating of the user 'myUserID' on the item 'myItemID':
client.saveRating({'userID': 'myItemID', 'itemID': 'myUserID', 'rating': 5}, function(err, content) {
if(err) {
console.log(err);
}
});
Delete the rating of a particular user on a particular item.
Example to delete the rating of the user 'myUserID' on the item 'myItemID':
client.deleteRating('myItemID', 'myUserID', function(err, content) {
if(err) {
console.log(err);
}
});
Return the prediction of the rating of an user on an item.
Example to retrieve the predicted rating of the user 'myUserID' on the item 'myItemID':
client.getPrediction('myUserID', 'myItemID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Get recommendations of items for an user.
Example to retrieve and display recommendations for an user 'myUserID':
client.getUserRecommendations('myUserID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Retrieve users that are similar to a given user.
Example to retrieve and display similar users with user 'myUserID':
client.getSimilarUsers('myUserID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Return the similarity between two users. The similarity is a number between -1 and 1. A similarity near -1 means that the two users are not similar. On the contrary, a similarity close 1 means that the two users are similar. Moreover, the similarity is symmetric, that is to say the similarity between an user 1 and an user 2 is equal to the similarity between an user 2 and an user 1.
Example to retrieve and display the similarity between the user 'myUserID1' and the user 'myUserID2':
client.getUsersSimilarity('myUserID1', 'myUserID2', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Return a list which contains the IDs of your items.
Example to list your items:
client.getItems(function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content.users);
}
});
Create a new item and return its ID.
Example to create a new item and print its ID:
client.addItem(function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content.itemID);
}
});
Return the item corresponding to the ID.
Example to retrieve the item 'myItemID':
client.getItem('myItemID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Save an item at a particular ID.
Example to save an item at the ID 'myItemID' with some ratings:
client.saveItem({'itemID': 'myItemID', 'ratings': {'myUserID': 5}}, function(err, content) {
if(err) {
console.log(err);
}
});
Update an item at a particular ID.
Example to update an item at the ID 'myItemID' with new ratings:
client.updateItem({'itemID': 'myItemID', 'ratings': {'myUserID': 2}}, function(err, content) {
if(err) {
console.log(err);
}
});
Delete a particular item.
Example to delete the item at the ID 'myItemID':
client.deleteItem('myItemID', function(err, content) {
if(err) {
console.log(err);
}
});
Get all the ratings of an item.
Example to retrieve the ratings of the item 'myItemID':
client.getItemRatings('myUserID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Get recommendations of users for an item.
Example to retrieve and display recommendations for an item 'myItemID':
client.getItemRecommendations('myItemID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Retrieve items that are similar to a given item.
Example to retrieve and display similar items with item 'myItemID':
client.getSimilarItems('myItemID', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});
Return the similarity between two items. The similarity is a number between -1 and 1. A similarity near -1 means that the two items are not similar. On the contrary, a similarity close 1 means that the two items are similar. Moreover, the similarity is symmetric, that is to say the similarity between an item 1 and an item 2 is equal to the similarity between an item 2 and an item 1.
Example to retrieve and display the similarity between the item 'myItemID1' and the item 'myItemID2':
client.getItemsSimilarity('myItemID1', 'myItemID2', function(err, content) {
if(err) {
console.log(err);
}
else {
console.log(content);
}
});