You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.
I think _eval_sets should have a leading underscore, as in evaluator._eval_sets = dict([('dev', evaluator.load('test1')) ]) evaluator.load_epoch(model, 54) evaluator.get_mrr(model, evaluate_all=True). The way I wrote it is so that class variables have a leading underscore while the access methods do not. I think this is causing the issue.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I have no problem getting evaluation during training work by setting evaluation mode to all in config. But my supervisor suggests me that:
To achieve this:
evaluator.load_epoch(model, 54) evaluator.get_mrr(model, evaluate_all=True)
#self._eval_sets = dict([(s, self.load(s)) for s in ['dev', 'test1', 'test2']]) self._eval_sets = dict([('dev', self.load('dev')) ])
evaluator.eval_sets = dict([('dev', evaluator.load('test1')) ]) evaluator.load_epoch(model, 54) evaluator.get_mrr(model, evaluate_all=True)
But it gives me the error:
TypeError: 'dict' object is not callable
What should I do? Thanks in advance.
The text was updated successfully, but these errors were encountered: