January 2020
Beginner to intermediate
432 pages
11h 24m
English
Execute the following steps to fit a neural network to a tabular dataset using fastai.
from fastai import *from fastai.tabular import *import pandas as pdfrom chapter_10_utils import performance_evaluation_report
df = pd.read_csv('credit_card_default.csv', index_col=0, na_values='')
DER_VAR = 'default_payment_next_month'num_features = list(df.select_dtypes('number').columns)num_features.remove(DEP_VAR)cat_features = list(df.select_dtypes('object').columns)preprocessing = [FillMissing, Categorify, Normalize]
data = (TabularList.from_df(df, ...
Read now
Unlock full access