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 automate for automated prediction. #11

Open
djjeremiahj opened this issue Oct 18, 2022 · 0 comments
Open

How to automate for automated prediction. #11

djjeremiahj opened this issue Oct 18, 2022 · 0 comments

Comments

@djjeremiahj
Copy link

I've connected the model to my data. I get a 95% accuracy rate!. It works perfectly. Now, I'm trying to use the model to iterate through the entire dataset and return the result. I'm trying to output the predictions for all 63K items.

I've tried simple for loop:

for each in df['short_description'].head(5):

test_features=transformer.transform(each)
get_top_k_predictions(model,each,2)

this returns:
ValueError: Iterable over raw text documents expected, string object received.

my intention is to use this as a 2nd method of prediction to verify the results of the structured programming that I've done. And as time passes, eventually, it will be the primary method.

There are 63K records in the file (and growing).

Any help would be greatly appreciated.

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