Class/Object

axle.ml

KMeans

Related Docs: object KMeans | package ml

Permalink

case class KMeans[T, F, G, M](data: F, N: Int, featureExtractor: (T) ⇒ Seq[Double], normalizerMaker: (M) ⇒ Normalize[M], K: Int, iterations: Int)(implicit evidence$1: Eq[T], space: MetricSpace[M, Double], functor: Functor[F, T, Seq[Double], G], la: LinearAlgebra[M, Int, Int, Double], index: Indexed[G, Int, Seq[Double]], finite: Finite[F, Int]) extends (T) ⇒ Int with Product with Serializable

KMeans

T

type of the objects being classified

Linear Supertypes
Serializable, Serializable, Product, Equals, (T) ⇒ Int, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KMeans
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KMeans(data: F, N: Int, featureExtractor: (T) ⇒ Seq[Double], normalizerMaker: (M) ⇒ Normalize[M], K: Int, iterations: Int)(implicit arg0: Eq[T], space: MetricSpace[M, Double], functor: Functor[F, T, Seq[Double], G], la: LinearAlgebra[M, Int, Int, Double], index: Indexed[G, Int, Seq[Double]], finite: Finite[F, Int])

    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. val K: Int

    Permalink
  5. val N: Int

    Permalink
  6. val X: M

    Permalink
  7. val a: M

    Permalink
  8. def andThen[A](g: (Int) ⇒ A): (T) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. def apply(observation: T): Int

    Permalink
    Definition Classes
    KMeans → Function1
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. val assignmentLog: Seq[M]

    Permalink
  12. def assignmentsAndDistances(space: MetricSpace[M, Double], X: M, μ: M): (M, M)

    Permalink

    assignmentsAndDistances

    assignmentsAndDistances

    μ

    Returns: N x 1 matrix: indexes of centroids closest to xi N x 1 matrix: distances to those centroids

  13. def centroid(i: Int): Seq[Double]

    Permalink
  14. def centroidIndexAndDistanceClosestTo(space: MetricSpace[M, Double], μ: M, x: M): (Int, Double)

    Permalink

    centroidIndexAndDistanceClosestTo

  15. def centroids(X: M, K: Int, assignments: M): (M, Seq[Int])

    Permalink

    centroids

    centroids

    X

    M x N scaled feature matrix

    K

    number of centroids

  16. def classes: Range

    Permalink
  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def clusterLA(X: M, space: MetricSpace[M, Double], K: Int, iterations: Int): Seq[(M, M, M)]

    Permalink

    clusterLA

    clusterLA

    X

    (normalized feature matrix)

  19. def compose[A](g: (A) ⇒ T): (A) ⇒ Int

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  20. val d: M

    Permalink
  21. val data: F

    Permalink
  22. val distanceLog: Seq[M]

    Permalink
  23. def distanceLogSeries: List[(Int, TreeMap[Int, Double])]

    Permalink
  24. def distanceTreeMap(centroidId: Int): TreeMap[Int, Double]

    Permalink
  25. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. val featureExtractor: (T) ⇒ Seq[Double]

    Permalink
  27. val featureMatrix: M

    Permalink
  28. val features: G

    Permalink
  29. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  32. val iterations: Int

    Permalink
  33. implicit val la: LinearAlgebra[M, Int, Int, Double]

    Permalink
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. val normalizer: Normalize[M]

    Permalink
  36. val normalizerMaker: (M) ⇒ Normalize[M]

    Permalink
  37. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  39. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. val μ: M

    Permalink
  45. val μads: Seq[(M, M, M)]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from (T) ⇒ Int

Inherited from AnyRef

Inherited from Any

Ungrouped