Coder Social home page Coder Social logo

Comments (4)

andrewdalpino avatar andrewdalpino commented on May 23, 2024

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

from ml.

elfeffe avatar elfeffe commented on May 23, 2024

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?

from ml.

andrewdalpino avatar andrewdalpino commented on May 23, 2024

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

from ml.

elfeffe avatar elfeffe commented on May 23, 2024

from ml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.