Packages

object NaiveBayes0

NaiveBayes0 is the companion object for the NaiveBayes0 class.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NaiveBayes0
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(xy: MatriI, fn: Array[String], k: Int, cn: Array[String], vc: VectoI = null, me: Double = me_default): NaiveBayes0

    Create a NaiveBayes0 object, passing 'x' and 'y' together in one matrix.

    Create a NaiveBayes0 object, passing 'x' and 'y' together in one matrix.

    xy

    the data vectors along with their classifications stored as rows of a matrix

    fn

    the names of the features

    k

    the number of classes

    vc

    the value count (number of distinct values) for each feature

    me

    use m-estimates (me == 0 => regular MLE estimates)