In order to use the evaluation metrics from https://huggingface.co/metrics 102, 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