Tabular regression for multiple variables

(Tom) #1

I’d like to predict n variables, indexed on date, instead of one.

So, I have daily sales volume of n products, and multiple categorical and continuous variables, created from date, like day of week etc., values taken from Google trends, weather, etc.
I’d like to build a model to predict all sales volumes in one go.

How to do it using fastai tabular?


(Zachary Mueller) #2

You can pass in a list of columns for dep_var and it will do exactly what you want :slight_smile:

1 Like

(Tom) #3

Do they have to be in cont_vars as well?


(Zachary Mueller) #4

No! You actually want to leave them out of cont_vars as cont and cat vars are your independent variables :slight_smile:

1 Like

(Tom) #5

Cool thank you!!


(Zachary Mueller) #6

No problem! Your domain sounds very similar to the Rossmann problem back in part one, that notebook can get you started as well :slight_smile:

1 Like

(Tom) #7

I did study Rossmann, but the prediction part is still hard for me. So far, I concentrated on data cleaning and building a model. Now, I must learn how to actually use the model.

1 Like