Skip to content

Evaluate.py to return more information #477

@excubo-jg

Description

@excubo-jg

I am wondering if the returns in evaluate.py code

        if return_all_scores and return_outputs:
            return round(100 * ncorrect / ntotal, 2), results
        elif return_all_scores:
            return round(100 * ncorrect / ntotal, 2), [score for *_, score in reordered_devset]
        elif return_outputs:
            return round(100 * ncorrect / ntotal, 2), results

        return round(100 * ncorrect / ntotal, 2)

could be changed so that

      if return_all_scores and return_outputs:
           return round(100 * ncorrect / ntotal, 2), results, [score for *_, score in reordered_devset]
       ....

returns all information at once

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions