nodes.learning

NaiveBayesModel

class NaiveBayesModel[T <: Vector[Double]] extends Transformer[T, DenseVector[Double]]

A Multinomial Naive Bayes model that transforms feature vectors to vectors containing the log posterior probabilities of the different classes

Linear Supertypes
Transformer[T, DenseVector[Double]], Pipeline[T, DenseVector[Double]], TransformerNode[DenseVector[Double]], Serializable, Serializable, Node, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NaiveBayesModel
  2. Transformer
  3. Pipeline
  4. TransformerNode
  5. Serializable
  6. Serializable
  7. Node
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NaiveBayesModel(labels: Array[Int], pi: Array[Double], theta: Array[Array[Double]])

    labels

    list of class labels, ranging from 0 to (C - 1) inclusive

    pi

    log of class priors, whose dimension is C, number of labels

    theta

    log of class conditional probabilities, whose dimension is C-by-D, where D is number of features

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def andThen[C, L](est: LabelEstimator[DenseVector[Double], C, L], data: RDD[T], labels: RDD[L]): PipelineWithFittedTransformer[T, DenseVector[Double], C]

    Definition Classes
    Pipeline
  7. final def andThen[C](est: Estimator[DenseVector[Double], C], data: RDD[T]): PipelineWithFittedTransformer[T, DenseVector[Double], C]

    Definition Classes
    Pipeline
  8. final def andThen[C](next: Pipeline[DenseVector[Double], C]): Pipeline[T, C]

    Chains a pipeline onto the end of this one, producing a new pipeline.

    Chains a pipeline onto the end of this one, producing a new pipeline.

    next

    the pipeline to chain

    Definition Classes
    Pipeline
  9. def apply(in: T): DenseVector[Double]

    Transforms a feature vector to a vector containing the log(posterior probabilities) of the different classes according to this naive bayes model.

    Transforms a feature vector to a vector containing the log(posterior probabilities) of the different classes according to this naive bayes model.

    in

    The input feature vector

    returns

    Log-posterior probabilites of the classes for the input features

    Definition Classes
    NaiveBayesModelTransformerPipeline
  10. def apply(in: RDD[T]): RDD[DenseVector[Double]]

    Apply this Transformer to an RDD of input items

    Apply this Transformer to an RDD of input items

    in

    The bulk RDD input to pass into this transformer

    returns

    The bulk RDD output for the given input

    Definition Classes
    TransformerPipeline
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def label: String

    Definition Classes
    Node
  20. val labels: Array[Int]

    list of class labels, ranging from 0 to (C - 1) inclusive

  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. val pi: Array[Double]

    log of class priors, whose dimension is C, number of labels

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. val theta: Array[Array[Double]]

    log of class conditional probabilities, whose dimension is C-by-D, where D is number of features

  27. final def toDOTString: String

    returns

    A graphviz dot representation of this pipeline

    Definition Classes
    Pipeline
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Transformer[T, DenseVector[Double]]

Inherited from Pipeline[T, DenseVector[Double]]

Inherited from TransformerNode[DenseVector[Double]]

Inherited from Serializable

Inherited from Serializable

Inherited from Node

Inherited from AnyRef

Inherited from Any

Ungrouped