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

Getting the trained model's predictions #8

Open
The-BlackCoat opened this issue Mar 7, 2023 · 1 comment
Open

Getting the trained model's predictions #8

The-BlackCoat opened this issue Mar 7, 2023 · 1 comment

Comments

@The-BlackCoat
Copy link

Hello. Thank you for this helpful code repository.

I have a question regarding using a trained model and obtaining its predictions.

In the documentation, you mention that:

"""

Testing the trained model

trainer.test(test_dataloaders=dataset.test_dataloaders())
"""

However, executing this code provides us only with some error metrics (e.g., test loss, accuracy), and not the actual trained model's predictions.

Can you help me with getting the model predictions and then convert the predictions to a NumPy array?
I need the model's predictions to calculate some statistics on them (for a classification task), that's why I need them in a NumPy array.

Thank you.
Best regards

@rkalahasty
Copy link

Hey, was wondering if you figured out how to get the model predictions? I am also doing a classification task

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

2 participants