Buckets:
Installation
Before you start, you will need to setup your environment and install the appropriate packages. ๐ค Evaluate is tested on Python 3.7+.
Virtual environment
You should install ๐ค Evaluate in a virtual environment to keep everything neat and tidy.
Create and navigate to your project directory:
mkdir ~/my-project cd ~/my-projectStart a virtual environment inside the directory:
python -m venv .envActivate and deactivate the virtual environment with the following commands:
# Activate the virtual environment source .env/bin/activate # Deactivate the virtual environment source .env/bin/deactivate
Once you have created your virtual environment, you can install ๐ค Evaluate in it.
pip
The most straightforward way to install ๐ค Evaluate is with pip:
pip install evaluate
Run the following command to check if ๐ค Evaluate has been properly installed:
python -c "import evaluate; print(evaluate.load('exact_match').compute(references=['hello'], predictions=['hello']))"
This should return:
{'exact_match': 1.0}
source
Building ๐ค Evaluate from source lets you make changes to the code base. To install from source, clone the repository and install with the following commands:
git clone https://github.com/huggingface/evaluate.git
cd evaluate
pip install -e .
Again, you can check if ๐ค Evaluate has been properly installed with:
python -c "import evaluate; print(evaluate.load('exact_match').compute(references=['hello'], predictions=['hello']))"
Xet Storage Details
- Size:
- 1.71 kB
- Xet hash:
- 69e89ba7f3812e7ce5759471038b5d3c260033bd18022cd980e0069ec5827c84
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.