does anyone know if there is a pytorch version of `evaluator.py`? Alternatively, are there other code resources to compute IS, precision and recall?