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], constructor: (Seq[Double]) ⇒ T, 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], constructor: (Seq[Double]) ⇒ T, 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 centroidIndexAndDistanceClosestTo(space: MetricSpace[M, Double], μ: M, x: M): (Int, Double)

    Permalink

    centroidIndexAndDistanceClosestTo

  14. 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

  15. def classes: Range

    Permalink
  16. def clone(): AnyRef

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

    Permalink

    clusterLA

    clusterLA

    X

    (normalized feature matrix)

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

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  19. val constructor: (Seq[Double]) ⇒ T

    Permalink
  20. val d: M

    Permalink
  21. val data: F

    Permalink
  22. val distanceLog: Seq[M]

    Permalink
  23. def distanceLogSeries: List[(String, 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. def exemplar(i: Int): T

    Permalink
  27. val exemplars: List[T]

    Permalink
  28. val featureExtractor: (T) ⇒ Seq[Double]

    Permalink
  29. val featureMatrix: M

    Permalink
  30. val features: G

    Permalink
  31. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  34. val iterations: Int

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

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

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

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

    Permalink
  39. final def notify(): Unit

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

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

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

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

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

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

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

    Permalink
  47. 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