Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load exist dataset for evaluation #589

Open
IsmaelMousa opened this issue May 6, 2024 · 1 comment
Open

Can't load exist dataset for evaluation #589

IsmaelMousa opened this issue May 6, 2024 · 1 comment

Comments

@IsmaelMousa
Copy link

Hi, I used dair-ai/emotion to fine-tune the bert-base-cased model to use it for text-classification task.

The dataset is loaded when I load it in this script, so there is no problem up to here:

from datasets import load_dataset

dataset = load_dataset("dair-ai/emotion")

But in the evaluation script here:

import numpy as np
import evaluate

predictions = trainer.predict(eval_dataset)

preds = np.argmax(predictions.predictions, axis=-1)

metric = evaluate.load("dair-ai/emotion")

metric.compute(predictions=preds, references=predictions.label_ids)

I got: FileNotFoundError: Couldn't find a module script at /content/dair-ai/emotion/emotion.py. Module 'dair-ai/emotion' doesn't exist on the Hugging Face Hub either.

I tried to find out the reason but did not find the solution.

@IsmaelMousa
Copy link
Author

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant