Tarek

Results 4 issues of Tarek

This is a small pull request simply removing code duplication by reusing the `brax.envs.get_environment` function. I have also made some slight improvements to the documentation of the `brax.envs.create` function to...

This fixes the mentionned issue by removing the argument passed to `Trial.should_prune()`

Simply added the missing import back to [optimizer.py#L46](https://github.com/arxaqapi/pyannote-pipeline/blob/fix_scipy_stats/pyannote/pipeline/optimizer.py#L46).

The following error is encountered `Trial.should_prune() takes 1 positional argument but 2 were given` when running an Optimizer instance created using a pruner like seen below: ```python optimizer = Optimizer(pipeline,...