0
$\begingroup$

I have a data from a store for the products that sold since more than 5 years. Each sell process has a customer id, date, and the quantity of the product.

I want to build a machine learning model to predict the products that will be sold in the next day/s for each of the customers, giving that I have N products (~2k) and M customers (~50).

I am not able to formulate this problem. It's a regression task (probably), but I don't know how can I formulate it to predict the products that a given customer will buy.

Since we have N products, this doesn't mean that a customer will buy all of them; x customer might buy only 5 products in the next day.

$\endgroup$
  • $\begingroup$ you can use MLforecast package. github.com/Akai01/MLforecast $\endgroup$ – Econ_matrix Aug 5 at 6:46
  • $\begingroup$ @Econ_matrix not clear what is this, and there is no resources for it. $\endgroup$ – Ghanem Aug 12 at 17:15
0
$\begingroup$

To answer your question, in that dataset the first thing to do is to determine the types of products in that product sold column or whatever. If you have like 3 or more different kinds of products to be sold. Then you can rename those types and use a classifier algorithm to make your prediction. So the product sold will serve as your target variable and other closely correlated variables will now serve as your predicting variables. So to add to the above, you want to predict the number of products to be purchased by a customer, then I suggest you look out for good multi-target regression models.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Sorry you answer is not clear. What do you mean by: 1) rename thoese types and use a classifier? 2) the product sold will serve as your target variable? , 3) other closely correlated variables will now serve as your predicting variables? Could u plz clarify these points? $\endgroup$ – Ghanem Aug 12 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.