Buckets:

HuggingFaceDocBuilder's picture
|
download
raw
752 Bytes
# Saving methods
Methods for saving evaluations results:
## Save[[evaluate.save]]
#### evaluate.save[[evaluate.save]]
```python
evaluate.save(path_or_file, **data)
```
[Source](https://github.com/huggingface/evaluate/blob/main/src/evaluate/saving.py#L13)
**Parameters:**
path_or_file (`str`) : Path or file to store the file. If only a folder is provided the results file will be saved in the format `"result-%Y_%m_%d-%H_%M_%S.json"`.
Saves results to a JSON file. Also saves system information such as current time, current commit
hash if inside a repository, and Python system information.
Example:
```py
>>> import evaluate
>>> result = {"bleu": 0.7}
>>> params = {"model": "gpt-2"}
>>> evaluate.save("./results/", **result, **params)
```

Xet Storage Details

Size:
752 Bytes
·
Xet hash:
38cb7225095c34295bf502e2aa6018c0c783f3af33697446e53efa393a2ec889

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.