MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_tabular

Method test_tabular

tests/test_fastai.py:28–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 dls = TabularDataLoaders.from_csv(
27 "/input/tests/data/train.csv",
28 cont_names=["pixel" + str(i) for i in range(784)],
29 y_names="label",
30 procs=[FillMissing, Categorify, Normalize],
31 )
32 learn = tabular_learner(dls, layers=[200, 100])
33 with learn.no_bar():
34 learn.fit_one_cycle(n_epoch=1)
35
36 self.assertGreater(learn.smooth_loss, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected