Skip to content

Conversation

talolard
Copy link

I spent a few hours fighting with this after copy pasting from the README.
I've adjusted two things that I missed at first and hope will be simpler for the next person

  1. To load in the browser the wasm file needs to be served on the same path. This was stated but easy to miss so I made it bold.
  2. If you don't specify probabilityEstimates: true then predictProbability returns noise. This wasn't obvious and I went down a rabbit hole till I figured it out. So I added a commented out line specifying so.

I spent a few hours fighting with this after copy pasting from the README. 
I've adjusted two things that I missed at first and hope will be simpler for the next person

1) To load in the browser the wasm file needs to be served on the same path. This was stated but easy to miss so I made it bold. 
2) If you don't specify probabilityEstimates: true then predictProbability returns noise. This wasn't obvious and I went down a rabbit hole till I figured it out. So I added a commented out line specifying so.
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

Successfully merging this pull request may close these issues.

1 participant