spire.example

RandomForestClassification

class RandomForestClassification[V, F, K] extends RandomForest[V, F, K]

A RandomForest implementation for classification. In this case, the outputs (dependent variable) belongs to some type K. This type needs to be a well behaved Java object as its equals and hashCode will be used to determine equality of classes. This implementation uses a majority vote method to determine classification. Each region in a tree is associated with the most popular class in that region. Ties are broken randomly (not really). Within a forest, each tree casts its vote for classification of a point and the majority wins. Again, ties are broken randomly (again, not really).

Linear Supertypes
RandomForest[V, F, K], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RandomForestClassification
  2. RandomForest
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RandomForestClassification()(implicit V: CoordinateSpace[V, F], order: Order[F], vectorClassTag: ClassTag[V])

Type Members

  1. case class FixedOptions(numAxesSample: Int, numPointsSample: Int, numTrees: Int, minSplitSize: Int, parallel: Boolean) extends Product with Serializable

    Attributes
    protected
    Definition Classes
    RandomForest
  2. case class Forest(trees: List[DecisionTree[V, F, K]]) extends Product with Serializable

    Attributes
    protected
    Definition Classes
    RandomForest
  3. final class GiniIndex extends RegionLike

    Attributes
    protected
  4. type Region = GiniIndex

    Attributes
    protected
    Definition Classes
    RandomForestClassificationRandomForest
  5. trait RegionCompanion extends AnyRef

    Attributes
    protected
    Definition Classes
    RandomForest
  6. trait RegionLike extends AnyRef

    Attributes
    protected
    Definition Classes
    RandomForest

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. implicit def F: Field[F]

    Definition Classes
    RandomForest
  7. object Region extends RegionCompanion

  8. implicit val V: CoordinateSpace[V, F]

  9. def apply(data: Array[V], out: Array[K], options: RandomForestOptions): (V) ⇒ K

    Definition Classes
    RandomForest
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def defaultOptions(size: Int): FixedOptions

    Attributes
    protected
    Definition Classes
    RandomForestClassificationRandomForest
  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()
  16. def fromForest(forest: Forest): (V) ⇒ K

    Attributes
    protected
    Definition Classes
    RandomForestClassificationRandomForest
  17. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. implicit val order: Order[F]

  24. def randomForest(data: Array[V], outputs: Array[K], opts: FixedOptions): Forest

    Construct a random forest.

    Construct a random forest.

    Attributes
    protected
    Definition Classes
    RandomForest
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. implicit val vectorClassTag: ClassTag[V]

  28. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from RandomForest[V, F, K]

Inherited from AnyRef

Inherited from Any

Ungrouped