Open fooSynaptic opened 5 years ago
I have the same issue as well. Any help would be appreciated
You may need to manually define the version of the fastai library. I used an older version: 0.7. Good luck! Reach out to me on Twitter (@omarsar0) if you continue with any issues.
Me too having the same issue how to we resolve this in the new version of fastai v1.0.X
Good luck to you
this might help Code link
class ModelData():
"""Encapsulates DataLoaders and Datasets for training, validation, test. Base class for fastai *Data classes."""
def __init__(self, path, trn_dl, val_dl, test_dl=None):
self.path,self.trn_dl,self.val_dl,self.test_dl = path,trn_dl,val_dl,test_dl
@classmethod
def from_dls(cls, path,trn_dl,val_dl,test_dl=None):
#trn_dl,val_dl = DataLoader(trn_dl),DataLoader(val_dl)
#if test_dl: test_dl = DataLoader(test_dl)
return cls(path, trn_dl, val_dl, test_dl)
@property
def is_reg(self): return self.trn_ds.is_reg
@property
def is_multi(self): return self.trn_ds.is_multi
@property
def trn_ds(self): return self.trn_dl.dataset
@property
def val_ds(self): return self.val_dl.dataset
@property
def test_ds(self): return self.test_dl.dataset
@property
def trn_y(self): return self.trn_ds.y
@property
def val_y(self): return self.val_ds.y
hello @alesee , i follow the document of your rep and run the jupyter notebook of abstractive-text-summ.ipynb to create modelData which stick the datasets to a single object. but the fastai.text do not have the ModelData module.
NameError Traceback (most recent call last)