Traceback (most recent call last):

 "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(_self.arg)

 "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 619, in newfunc
return func(_arg, **kw)TypeError: build_test() takes exactly 1 argument (0 given)
Traceback (most recent call last):


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/optuna/study.py", line 778, in _run_trial

result = func(trial)


 "test_op.py", line 41, in objective

return executor.run()


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/optuna/integration/allennlp.py", line 145, in run

allennlp.commands.train.train_model(params, self._serialization_dir)


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/commands/train.py", line 224, in train_model

model = _train_worker(


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/commands/train.py", line 417, in _train_worker

train_loop = TrainModel.from_params(


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 576, in from_params

return retyped_subclass.from_params(


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 611, in from_params

return constructor_to_call(**kwargs)
# type: ignore


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/commands/train.py", line 670, in from_partial_objects

trainer_ = trainer.construct(


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/lazy.py", line 46, in construct

return self._constructor(**kwargs)


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 446, in constructor

return value_cls.from_params(params=deepcopy(popped_params), **constructor_extras)


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 576, in from_params

return retyped_subclass.from_params(


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 609, in from_params

kwargs = create_kwargs(constructor_to_inspect, cls, params, **extras)


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 180, in create_kwargs

constructed_arg = pop_and_construct_arg(


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 287, in pop_and_construct_arg

return construct_arg(class_name, name, popped_params, annotation, default, **extras)


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 463, in construct_arg

value = construct_arg(


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 321, in construct_arg

return annotation.from_params(params=popped_params, **subextras)


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/from_params.py", line 557, in from_params

choice = params.pop_choice(


 "/home/cjber/.pyenv/versions/py3nvim/lib/python3.8/site-packages/allennlp/common/params.py", line 351, in pop_choice

raise ConfigurationError(message)
allennlp.common.checks.ConfigurationError: optuna_pruner not in acceptable choices for trainer.epoch_callbacks.0.type: ['null']. You should either use the --include-package flag to make sure the correct module is loaded, or use a fully qualified class name in your config file like {"model": "my_module.models.MyModel"} to have it imported automatically.
