Hi
I am trying to use another pretrained model with deeppavlov. I have made required changes in config file.
Now I want to integrate it with my .csv dataset. But I am unable to do so.
I have changed the dataset reader in config file.
I cant find any train.csv and valid.csv after running the training code from notebook.
Any help is welcomed. Find my error below:
WARNING in 'deeppavlov.core.trainers.fit_trainer'['fit_trainer'] at line 214: Got empty data iterable for scoring
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
1 from deeppavlov import train_model, configs
2
----> 3 model = train_model(âE:\anaconda\envs\deeppavlov\lib\site-packages\deeppavlov\configs\squad\squad_biobert.jsonâ, download=False)
E:\anaconda\envs\deeppavlov\lib\site-packages\deeppavlov\__init__.py in train_model(config, download, recursive)
27 # TODO: make better
28 def train_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> Chainer:
---> 29 train_evaluate_model_from_config(config, download=download, recursive=recursive)
30 return build_model(config, load_trained=True)
31
E:\anaconda\envs\deeppavlov\lib\site-packages\deeppavlov\core\commands\train.py in train_evaluate_model_from_config(config, iterator, to_train, evaluation_targets, to_validate, download, start_epoch_num, recursive)
119
120 if to_train:
--> 121 trainer.train(iterator)
122
123 res = {}
E:\anaconda\envs\deeppavlov\lib\site-packages\deeppavlov\core\trainers\nn_trainer.py in train(self, iterator)
335 if callable(getattr(self._chainer, 'train_on_batch', None)):
336 try:
--> 337 self.train_on_batches(iterator)
338 except KeyboardInterrupt:
339 log.info('Stopped training')
E:\anaconda\envs\deeppavlov\lib\site-packages\deeppavlov\core\trainers\nn_trainer.py in train_on_batches(self, iterator)
275 self.start_time = time.time()
276 if self.validate_first:
--> 277 self._validate(iterator)
278
279 while True:
E:\anaconda\envs\deeppavlov\lib\site-packages\deeppavlov\core\trainers\nn_trainer.py in _validate(self, iterator, tensorboard_tag, tensorboard_index)
173 report['train_examples_seen'] = self.examples
174
--> 175 metrics = list(report['metrics'].items())
176
177 if tensorboard_tag is not None and self.tensorboard_log_dir is not None:
AttributeError: 'NoneType' object has no attribute 'items'
â
Thank you!