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

How to directly input text for prediction? #2

Open
gggdroa opened this issue Jul 17, 2023 · 4 comments
Open

How to directly input text for prediction? #2

gggdroa opened this issue Jul 17, 2023 · 4 comments

Comments

@gggdroa
Copy link

gggdroa commented Jul 17, 2023

No description provided.

@bazingagin
Copy link
Owner

hey @gggdroa you need to have the training set to make prediction. If you mean using you own custom dataset, you can check the readme: https://github.com/bazingagin/npc_gzip#use-custom-dataset

@icang1694
Copy link

how do i get the prediction on each of my test data?

@zbloss
Copy link
Collaborator

zbloss commented Jul 31, 2023

Hey @icang1694 , take a look at this feature branch: https://github.com/bazingagin/npc_gzip/tree/v0.0.1-packaging

We are very close to releasing this code with some major refactors available on pypi. This should make generating predictions more clear.

Check out this example specifically: https://github.com/bazingagin/npc_gzip/blob/v0.0.1-packaging/examples/ag_news.py

@icang1694
Copy link

thanks, im able to get prediction from getting the return value pred, correct in calc_acc can i print out the confidence level on each prediction?

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

5 participants
@zbloss @bazingagin @icang1694 @gggdroa and others