nltk/nltk

How to stabilize NaiveBayesClassifier outputs?

Open

#2,097 opened on Aug 28, 2018

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Python (2,826 forks)batch import
good first issuetaggertests

Repository metrics

Stars
 (12,712 stars)
PR merge metrics
 (Avg merge 8d 5h) (88 merged PRs in 30d)

Description

On sometimes we see that the continuous integration test fails because of some non-deterministic results from the NgramTagger i.e. are NaiveBayesClassifer, e.g. https://nltk.ci.cloudbees.com/job/pull_request_tests/822/PYV=3.6.4,jdk=jdk8latestOnlineInstall/testReport/junit/(root)/nltk/tag/

Is there someway to set a random seed or something such that classifier's output is consistent and make sure that the model is easily replicable?

Contributor guide