huggingface / evaluate

🤗 Evaluate: A library for easily evaluating machine learning models and datasets.
https://huggingface.co/docs/evaluate
Apache License 2.0
1.9k stars 235 forks source link

Fix example doc in load function #575

Closed alexrs closed 3 months ago

alexrs commented 3 months ago

What

The example in the docs for the load function is wrong, and should be

>>> from evaluate import load
>>> accuracy = load("accuracy")

or

>>> import evaluate
>>> accuracy = evaluate.load("accuracy")

Why

Small change, but it was kinda bothering me 😅