Class NaiveBayesClassifierRocksDBLaplacedImpl

    • Constructor Detail

      • NaiveBayesClassifierRocksDBLaplacedImpl

        public NaiveBayesClassifierRocksDBLaplacedImpl​(String classifierName,
                                                       String[] categories,
                                                       String rootPathWritable,
                                                       double alpha,
                                                       boolean variant)
                                                throws PersistentClassifierException
        Create a Naive Bayes Classifier implementation with RocksDB as key/value store.
        Parameters:
        classifierName - The classifier name
        categories - The classification categories
        rootPathWritable - A writable path for RocksDB
        alpha - The Laplace alpha, typically 1.0
        variant - The Laplace variant
        Throws:
        PersistentClassifierException - The persistence error and cause
      • NaiveBayesClassifierRocksDBLaplacedImpl

        public NaiveBayesClassifierRocksDBLaplacedImpl​(String classifierName,
                                                       String[] categories,
                                                       String rootPathWritable)
                                                throws PersistentClassifierException
        Create a Naive Bayes Classifier implementation with RocksDB as key/value store and defaults for Laplace smoothing (ALPHA=1 and VARIANT=false)
        Parameters:
        classifierName - The classifier name
        categories - The classification categories
        rootPathWritable - A writable path for RocksDB
        Throws:
        PersistentClassifierException - The persistence error and cause