2297d480f2a00b14f39473bf0f2d2672978554df,tests/test_fastai.py,TestFastAI,test_tabular,#TestFastAI#,27
Before Change
self.assertTrue(torch.all(a == b))
def test_tabular(self):
df = pd.read_csv("/input/tests/data/train.csv")
procs = [FillMissing, Categorify, Normalize]
valid_idx = range(len(df)-5, len(df))
dep_var = "label"
After Change
def test_tabular(self):
dls = TabularDataLoaders.from_csv(
"/input/tests/data/train.csv",
cont_names=["pixel"+str(i) for i in range(784)],
y_names="label",
procs=[FillMissing, Categorify, Normalize])
learn = tabular_learner(dls, layers=[200, 100])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: Kaggle/docker-python
Commit Name: 2297d480f2a00b14f39473bf0f2d2672978554df
Time: 2020-09-14
Author: rosbo@google.com
File Name: tests/test_fastai.py
Class Name: TestFastAI
Method Name: test_tabular
Project Name: mozilla/TTS
Commit Name: 793563b586f44ec06ffbe1193d939e751c1e4737
Time: 2018-03-02
Author: egolge@mozilla.com
File Name: datasets/LJSpeech.py
Class Name: LJSpeechDataset
Method Name: __init__
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 4d0483edd1468855df714f77bca1a0a93f01cbce
Time: 2018-06-18
Author: benjamin@bengfort.com
File Name: docs/api/features/pca.py
Class Name:
Method Name: