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

Encountered NaN #10

Open
ashispapu opened this issue Sep 17, 2020 · 0 comments
Open

Encountered NaN #10

ashispapu opened this issue Sep 17, 2020 · 0 comments

Comments

@ashispapu
Copy link

Hi,
Thanks for sharing your work. I trained a supervised model and while testing the model, on certain inputs(mostly single or double words), getting the below errors.

et_model.predict('hiii',k=8)

else:
    138             text = check(text)
--> 139             pairs = self.x.predict(text, k, threshold)
    140             probs, labels = zip(*pairs) if len(pairs) else ([], [])
    141             return labels, np.array(probs, copy=False)

RuntimeError: Encountered NaN. ```

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