axle.ml.KMeans

KMeansClassifier

case class KMeansClassifier [T] (data: Seq[T], N: Int, featureExtractor: (T) ⇒ Seq[Double], constructor: (Seq[Double]) ⇒ T, distance: DistanceFunction, K: Int, iterations: Int) extends Product with Serializable

KMeansClassifier[T]

T

type of the objects being classified

N

number of features

featureExtractor

creates a list of features (Doubles) of length N given a T

constructor

creates a T from list of arguments of length N

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. KMeansClassifier
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KMeansClassifier (data: Seq[T], N: Int, featureExtractor: (T) ⇒ Seq[Double], constructor: (Seq[Double]) ⇒ T, distance: DistanceFunction, K: Int, iterations: Int)

    N

    number of features

    featureExtractor

    creates a list of features (Doubles) of length N given a T

    constructor

    creates a T from list of arguments of length N

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. val K : Int

  7. val N : Int

    number of features

  8. val X : M[Double]

  9. val a : M[Int]

  10. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  11. val assignmentLog : Seq[M[Int]]

  12. def canEqual (arg0: Any): Boolean

    Definition Classes
    KMeansClassifier → Equals
  13. def classify (observation: T): Int

  14. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def confusionMatrix [L] (data: Seq[T], labelExtractor: (T) ⇒ L): ConfusionMatrix[T, L]

  16. val constructor : (Seq[Double]) ⇒ T

    creates a T from list of arguments of length N

  17. val d : M[Double]

  18. val data : Seq[T]

  19. val distance : DistanceFunction

  20. val distanceLog : Seq[M[Double]]

  21. def distanceLogSeries (): Seq[(String, SortedMap[Int, Double])]

  22. def distanceTreeMap (centroidId: Int): SortedMap[Int, Double]

  23. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. def equals (arg0: Any): Boolean

    Definition Classes
    KMeansClassifier → Equals → AnyRef → Any
  25. def exemplar (i: Int): T

  26. val exemplars : List[T]

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

    creates a list of features (Doubles) of length N given a T

  28. val features : M[Double]

  29. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  31. def hashCode (): Int

    Definition Classes
    KMeansClassifier → AnyRef → Any
  32. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  33. val iterations : Int

  34. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  35. val normalizer : PCAFeatureNormalizer

  36. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  37. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  38. def productArity : Int

    Definition Classes
    KMeansClassifier → Product
  39. def productElement (arg0: Int): Any

    Definition Classes
    KMeansClassifier → Product
  40. def productIterator : Iterator[Any]

    Definition Classes
    Product
  41. def productPrefix : String

    Definition Classes
    KMeansClassifier → Product
  42. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  43. def toString (): String

    Definition Classes
    KMeansClassifier → AnyRef → Any
  44. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  47. val μ : M[Double]

  48. val μads : Seq[(M[Double], M[Int], M[Double])]

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any