Tabular data is data that is in tables. This is one of the most prevalent forms of data in industry, yet underrepresented in research. Things like information about real estate, bank accounts, user profiles, spreadsheets etc... are usually stored in tables.
Fast.ai features a very handy library to create and train models based on tabular data, import it as follows:
from fastai.tabular import *
Tabular data usually consists of two different kinds of data. Categorical data is represents data that can be divided into unique groups. Food types, gender, marital status etc...
Continuous data is data which exists at all points of an interval. For example, the price of a stock:
These two types of data have to be treated differently. If you were to treat food type as a continuous datatype, then your model might classify your red strawberry ice-cream image as an ice-steak.
The fast.ai library makes this easy:
cat_names = ['workclass', 'education', 'marital-status', 'relationship', 'race']cont_names = ['age', 'salary', 'square-footage-house']# and then you just indicate the datatypes to the TabularList functiondata = TabularList.from_df(cat_names=cat_names, cont_names=cont_names)
The data object can then be fed directly into your model.