mirror of
https://github.com/wassname/multifit.git
synced 2026-10-29 13:20:17 +08:00
Remove fastai warning
This commit is contained in:
1 parent
c698c97772
commit
61ae344fda
1 file changed
+2
-2
@@ -16,8 +16,8 @@ for mode in ['train', 'test']:
|
||||
for file in glob.glob(pattern):
|
||||
shutil.copy(file, tgt_path)
|
||||
|
||||
data_lm = TextLMDataBunch.from_folder(path)
|
||||
data_clas = TextClasDataBunch.from_folder(path, bs=32, vocab=data_lm.train_ds.vocab)
|
||||
data_lm = TextLMDataBunch.from_folder(path, valid='test')
|
||||
data_clas = TextClasDataBunch.from_folder(path, bs=32, vocab=data_lm.train_ds.vocab, valid='test')
|
||||
|
||||
print('Vocab size', len(data_lm.train_ds.vocab.itos))
|
||||
|
||||
|
||||
Reference in new issue
Block a user