Class

clustering4ever.scala.clustering

KCommonsMixt

Related Doc: package clustering

Permalink

abstract class KCommonsMixt[ID, Vb <: Seq[Int], Vs <: Seq[Double], V <: BinaryScalarVector[Vb, Vs], D <: Distance[V], Cz <: Clusterizable[ID, V]] extends KCommonsScala[ID, V, D, Cz]

Linear Supertypes
KCommonsScala[ID, V, D, Cz], KCommons[ID, V, D], ClusteringAlgorithms[ID], Serializable, Serializable, DataSetsTypes[ID], ClusteringCommons, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KCommonsMixt
  2. KCommonsScala
  3. KCommons
  4. ClusteringAlgorithms
  5. Serializable
  6. Serializable
  7. DataSetsTypes
  8. ClusteringCommons
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KCommonsMixt(data: GenSeq[Cz], metric: D, k: Int, initializedCenters: HashMap[Int, V] = mutable.HashMap.empty[Int, V])(implicit arg0: Numeric[ID])

    Permalink

Type Members

  1. type ClusterID = Int

    Permalink
    Definition Classes
    ClusteringCommons
  2. type ID = ID

    Permalink
    Definition Classes
    DataSetsTypes

Abstract Value Members

  1. abstract def run(): ClusteringModel

    Permalink
    Definition Classes
    ClusteringAlgorithms

Concrete 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. def areCentersMovingEnough(kCentersBeforeUpdate: HashMap[Int, V], centers: HashMap[Int, V], epsilon: Double): Boolean

    Permalink

    Check if centers move enough

    Check if centers move enough

    returns

    true if every centers move less than epsilon

    Attributes
    protected
    Definition Classes
    KCommons
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val centers: HashMap[Int, V]

    Permalink
    Definition Classes
    KCommonsScala
  7. val centersCardinality: HashMap[Int, Int]

    Permalink
    Definition Classes
    KCommonsScala
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def clusterizedAndSaveCenters(vectorizedDataset: GenSeq[V], centers: HashMap[Int, V]): (GenSeq[(V, Int)], HashMap[Int, V])

    Permalink

    Attributes
    protected
    Definition Classes
    KCommons
  10. def clusterizedAndSaveCentersWithResetingCentersCardinalities(centers: HashMap[Int, V], centersCardinality: HashMap[Int, Int]): (GenSeq[(V, Int)], HashMap[Int, V])

    Permalink
    Attributes
    protected
    Definition Classes
    KCommonsScala
  11. val dimBinary: Int

    Permalink
    Attributes
    protected
  12. val dimScalar: Int

    Permalink
    Attributes
    protected
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  19. lazy val kmppInitialization: (GenSeq[V], Int) ⇒ HashMap[Int, V]

    Permalink

    Kmeans++ initialization

    Kmeans++ initialization

    References

    • Tapas Kanungo, David M. Mount, Nathan S. Netanyahu, Christine D. Piatko, Ruth Silverman, and Angela Y. Wu. An Efficient k-Means Clustering Algorithm: Analysis and Implementation. IEEE TRANS. PAMI, 2002.
    • D. Arthur and S. Vassilvitskii. "K-means++: the advantages of careful seeding". ACM-SIAM symposium on Discrete algorithms, 1027-1035, 2007.
    • Anna D. Peterson, Arka P. Ghosh and Ranjan Maitra. A systematic evaluation of different methods for initializing the K-means clustering algorithm. 2010.
    Definition Classes
    KCommons
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def obtainMedoid(gs: GenSeq[V]): V

    Permalink

    Compute the similarity matrix and extract point which is the closest from all other point according to its dissimilarity measure

    Compute the similarity matrix and extract point which is the closest from all other point according to its dissimilarity measure

    Attributes
    protected
    Definition Classes
    KCommons
  24. def obtainNearestCenterID(v: V, centers: HashMap[Int, V]): ClusterID

    Permalink

    Attributes
    protected
    Definition Classes
    KCommons
  25. def removeEmptyClusters(centers: HashMap[Int, V], kCentersBeforeUpdate: HashMap[Int, V], centersCardinality: HashMap[Int, Int]): Unit

    Permalink

    Check if there are empty centers and remove them

    Check if there are empty centers and remove them

    Attributes
    protected
    Definition Classes
    KCommons
  26. def removeEmptyClustersAndCheckIfallCentersHaveConverged(centers: HashMap[Int, V], kCentersBeforeUpdate: HashMap[Int, V], centersCardinality: HashMap[Int, Int], epsilon: Double): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    KCommons
  27. def resetCentersCardinality(centersCardinality: HashMap[Int, Int]): Unit

    Permalink

    Reinitialization of cardinalities

    Reinitialization of cardinalities

    Attributes
    protected
    Definition Classes
    KCommons
  28. def runKAlgorithmWithCustomMetric(maxIterations: Int, epsilon: Double): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    KCommonsScala
  29. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def updateCentersAndCardinalitiesCustom(clusterized: GenSeq[(V, Int)], centers: HashMap[Int, V], centersCardinality: HashMap[Int, Int]): Unit

    Permalink

    Update Center and Cardinalities

    Update Center and Cardinalities

    Attributes
    protected
    Definition Classes
    KCommonsScala
  32. val vectorizedDataset: GenSeq[V]

    Permalink
    Definition Classes
    KCommonsScala
  33. final def wait(): Unit

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

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

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

Inherited from KCommonsScala[ID, V, D, Cz]

Inherited from KCommons[ID, V, D]

Inherited from ClusteringAlgorithms[ID]

Inherited from Serializable

Inherited from Serializable

Inherited from DataSetsTypes[ID]

Inherited from ClusteringCommons

Inherited from AnyRef

Inherited from Any

Ungrouped