Evaluation metrics

In order to use the evaluation metrics from Hugging Face – The AI community building the future., for example,

from datasets import load_metric

metric = load_metric(“accuracy”)

does the dataset must be from the huggingface or may I use these metrics with transformer model based on my data?

thanks

You can use it on any data you want.