Class/Object

io.radanalytics.silex.cluster

ClusteringRandomForestModel

Related Docs: object ClusteringRandomForestModel | package cluster

Permalink

class ClusteringRandomForestModel extends Serializable

Enhance Spark RandomForestModel objects with methods for Random Forest Clustering

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClusteringRandomForestModel
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClusteringRandomForestModel(self: RandomForestModel)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def countFeatureIndexes: Map[Int, Int]

    Permalink

    Traverse the trees in a Random Forest ensemble and count the number of times each feature index appears over all the trees

    Traverse the trees in a Random Forest ensemble and count the number of times each feature index appears over all the trees

    returns

    A mapping from feature index, to the number of times it appeared over the trees in the ensemble

  7. def countFeatures(names: PartialFunction[Int, String]): Map[String, Int]

    Permalink

    Traverse the trees in a Random Forest ensemble and count the number of times each feature appears over all the trees

    Traverse the trees in a Random Forest ensemble and count the number of times each feature appears over all the trees

    names

    A partial function that returns the name of a feature, given its index

    returns

    A mapping from feature name to the number of times it appeared over the trees in the ensemble

  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def histFeatureIndexes: Seq[(Int, Int)]

    Permalink

    Traverse the trees in a Random Forest ensemble and count the number of times each feature index appears over all the trees

    Traverse the trees in a Random Forest ensemble and count the number of times each feature index appears over all the trees

    returns

    A sequence of pairs (idx, n) where 'idx' is a feature index and 'n' is the number of times it was used in the ensemble's trees, sorted in descending order of counts.

  14. def histFeatures(names: PartialFunction[Int, String]): Seq[(String, Int)]

    Permalink

    Traverse the trees in a Random Forest ensemble and count the number of times each feature appears over all the trees

    Traverse the trees in a Random Forest ensemble and count the number of times each feature appears over all the trees

    names

    A partial function that returns the name of a feature, given its index

    returns

    A sequence of pairs (name, n) where 'name' is a feature name and 'n' is the number of times it was used in the ensemble's trees, sorted in descending order of counts.

  15. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def predictLeafIds(data: RDD[Vector]): RDD[Vector[Int]]

    Permalink

    Map an RDD of feature vectors to a corresponding RDD of leaf-node id vectors

    Map an RDD of feature vectors to a corresponding RDD of leaf-node id vectors

    data

    The RDD of feature vectors

    returns

    An RDD of leaf-node id vectors

  20. def predictLeafIds(features: Vector): Vector[Int]

    Permalink

    Evaluate an input feature vector and return a vector of the leaf-node ids that the feature vector "landed" at for each tree in the RF ensemble

    Evaluate an input feature vector and return a vector of the leaf-node ids that the feature vector "landed" at for each tree in the RF ensemble

    features

    The feature vector to evaluate

    returns

    vector of leaf node ids, one from each tree in the ensemble

  21. def rules(names: PartialFunction[Int, String], catInfo: PartialFunction[Int, Int]): Map[Double, Seq[Seq[Predicate]]]

    Permalink

    Traverse the trees in a Random Forest ensemble and convert each path from root to a leaf into a "rule" that is a sequence of individual predicates representing the decision made at each internal node.

    Traverse the trees in a Random Forest ensemble and convert each path from root to a leaf into a "rule" that is a sequence of individual predicates representing the decision made at each internal node.

    names

    a partial function that returns name of a feature given its index

    catInfo

    a partial function from feature index to number of categories. If an index is not present then it is assumed to be numeric

    returns

    a map from leaf-node prediction values to a collection of all rules that will yield that value.

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped