Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ecommerce recommender with multi events #10

Closed
elfeffe opened this issue Dec 23, 2018 · 4 comments
Closed

Ecommerce recommender with multi events #10

elfeffe opened this issue Dec 23, 2018 · 4 comments
Labels
question Further information is requested

Comments

@elfeffe
Copy link

elfeffe commented Dec 23, 2018

Great project!
I would like to use it for e-commerce recommendations. I have events like View Peoduct, Buy Product, Add to Cart, View Newsletter, etc.
How will you do something that consider all the information to recommend a product to a visitor based on his other actions?
Can you create some sample project like the one that predicts a House Sale Price?

@andrewdalpino andrewdalpino added the help wanted Extra attention is needed label Dec 23, 2018
@andrewdalpino
Copy link
Member

Thank you

There are multiple ways of implementing a recommendation engine - once you are certain that you want to use a machine learning approach, you will need to identify features (such as the last 10 product categories viewed, etc.) that allow the estimator to learn the mapping from input to a good recommendation. This will require some ingenuity and domain knowledge on your end.

Typically, learners require a fixed length feature vector as input. For this reason, if you would like to be able to consider all of the information you have regarding the user, you will need to come up with a fixed length representation of the data first (Ex. Category view counts, demographics, etc.). Again this will require some ingenuity on your part. I would start by becoming very familiar with the differences between categorical and continuous data representations.

Then you have to consider what you want your model output to be. Will it be the category of a product? A specific product? A score as to how much the estimator thinks the customer will like a specific product?

Once you narrow down the problem, let me know and if you had more questions we'll go from there

@andrewdalpino andrewdalpino added question Further information is requested and removed help wanted Extra attention is needed labels Dec 24, 2018
@elfeffe
Copy link
Author

elfeffe commented Dec 26, 2018

Thank you @andrewdalpino
I have some information about people, like geographic zone, purchase quantity, etc.
But what I have more is user to items actions. View item, add to cart item, bought item, spent time viewing item, etc.
What I want is to recommend items based on that, ordered by the probability to buy the item.
Buy is the target action, the rest is just secondary information that can help us to understand what the user wants.
I think it will be great if we can assign some weight, because add to cart item is more than view item. View item 3 times is also more than view item.
This recommender https://github.com/actionml/universal-recommender
Is great, it just doesn’t assign weight to actions, but it uses all the actions (not with a fixed length) to recommend items based in the probability to reach the target action.
Can we do something like that?

@andrewdalpino
Copy link
Member

andrewdalpino commented Dec 27, 2018

A Probabilistic classifier that outputs the probability of purchasing every product in the catalog will do the trick. However, there are some things to consider. Is the product catalog very large? Will it change frequently? If so, this model might not scale as well as you'd expect.

The prediction would look something like ...

{
    "guitar": 0.6,
    "soap": 0.1,
    "bananas": 0.3
}

... and you'd recommend the products with the highest probabilities

I cannot speak too much about the feature engineering as I'm not an expert in your domain, but it sounds like you can use those events as features just fine. Again, it will require some wrangling on your part. The training label of each sample will be the product or products they've purchased as a result of those events.

I am not familiar with that library either but maybe it would help to know that aside from machine learning you could also try a collaborative filtering approach

@elfeffe
Copy link
Author

elfeffe commented Dec 28, 2018 via email

andrewdalpino pushed a commit that referenced this issue Jun 13, 2020
Andrew explained how to do it: #10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants