Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab_ae.ipynb; could not do one pass in your dataloader #63

Open
lzumot opened this issue Jan 22, 2023 · 1 comment
Open

tab_ae.ipynb; could not do one pass in your dataloader #63

lzumot opened this issue Jan 22, 2023 · 1 comment

Comments

@lzumot
Copy link

lzumot commented Jan 22, 2023

where: 03_tab.ae.ipynb,

cell/command:
to = TabularPandasIdentity(df, [Categorify, FillMissing, Normalize], cat_names, cont_names, splits=RandomSplitter(seed=32)(df))
dls = to.dataloaders(bs=1024)

error: = .iLoc requires numeric indexers, got [None]

cannot do _one_pass

@lzumot
Copy link
Author

lzumot commented Jan 22, 2023

potential fix in notebook but not sure it breaks anything, comment out do_item = noops to allow it to run when called for one_pass:

@Delegates()
class TabDataLoaderIdentity(TabDataLoader):
"A transformed DataLoader for AutoEncoder problems with Tabular data"
#do_item = noops <------------------ comment out
def init(self, dataset, bs=16, shuffle=False, after_batch=None, num_workers=0, **kwargs):
if after_batch is None: after_batch = L(TransformBlock().batch_tfms)+ReadTabBatchIdentity(dataset)
super().init(dataset, bs=bs, shuffle=shuffle, after_batch=after_batch, num_workers=num_workers, **kwargs)

def create_batch(self, b): return self.dataset.iloc[b]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant