Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔓📊 Relax type hint of RankBasedEvaluator's metrics/metrics_kwargs par…
…ameter pair to match `make_many` (#1383) This is a small PR to relax the type hint the `metric`/`metric_kwargs` parameter-pair of `RankBasedEvaluator.__init__` to the one of `ClassResolver.make_many`. In particular this indicates that you can also pass a single hint such as ```python evaluator = RankBasedEvaluator( metrics="hits_at_k", metric_kwargs=dict(k=50), ) ``` or use "broadcasting" such as ```python evaluator = RankBasedEvaluator( metrics="hits_at_k", metric_kwargs=[dict(k=k) for k in (32, 64, 128)], ) ```
- Loading branch information