Skip to content

Instantly share code, notes, and snippets.

@kmaher9
Created August 24, 2018 21:33
Show Gist options
  • Save kmaher9/dc49a49d504d5803fd19bdfb07fcd0f8 to your computer and use it in GitHub Desktop.
Save kmaher9/dc49a49d504d5803fd19bdfb07fcd0f8 to your computer and use it in GitHub Desktop.
func predict(location string, classifier *bayesian.Classifier) {
probabilities, _, _ := classifier.ProbScores([]string{readFile(location)})
fmt.Println(probabilities)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment