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

Inference #7

Open
Seraphyx opened this issue Dec 31, 2017 · 0 comments
Open

Inference #7

Seraphyx opened this issue Dec 31, 2017 · 0 comments

Comments

@Seraphyx
Copy link

Hi,

A silly question, but I'm following along with the tutorial building the model, but I'm having trouble trying to perform inference with new data.

For example, if trained on an IMDB dataset with 0/1 labels, I want to infer/fit a new sentence and make use of the model but I want to do it in a proper way. Right now I'm taking the raw text ("I loved this movie.") and feeding it to the tokenizer.encode_texts() method then using the tokenizer's embeddings_index to attach the embeddings, etc....

But I'm pretty sure I'm doing it wrong. I was wondering if there is an example on doing out of sample inference after training the model. Thank you!

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