Skip to content

Encountered NaN #10

Description

@ashispapu

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. ```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions