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

Using trained model #21

Open
rjczanikcorp opened this issue Jan 14, 2019 · 0 comments
Open

Using trained model #21

rjczanikcorp opened this issue Jan 14, 2019 · 0 comments

Comments

@rjczanikcorp
Copy link

Hi,

I use the packages to correctly train a model, now the question is how can I use the trained model to make predictions? I give the input of my training and testing sets as an array of lists of strings:

test_x = ['cat fat hat', 'lorem ipsum pretorium', ... ,'this is a list']

The Dataset routine essentially also creates numpy arrays of the lists of strings. Thus it should work with similar lists of arrays? I tried to use the model.predist(test_x), but I get a returned an error of:

Error when checking input: expected input_4 to have 3 dimensions, but got array with shape (20000, 1)

Any advice?

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