class PCAModel extends VectorTransformer
Model fitted by PCA that can project vectors to a low-dimensional space using PCA.
- Annotations
- @Since("1.4.0")
- Alphabetic
- By Inheritance
- PCAModel
- VectorTransformer
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val explainedVariance: DenseVector
- Annotations
- @Since("1.6.0")
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val k: Int
- Annotations
- @Since("1.4.0")
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- val pc: DenseMatrix
- Annotations
- @Since("1.4.0")
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transform(vector: Vector): Vector
Transform a vector by computed Principal Components.
Transform a vector by computed Principal Components.
- vector
vector to be transformed. Vector must be the same length as the source vectors given to
PCA.fit()
.- returns
transformed vector. Vector will be of length k.
- Definition Classes
- PCAModel → VectorTransformer
- Annotations
- @Since("1.4.0")
- def transform(data: JavaRDD[Vector]): JavaRDD[Vector]
Applies transformation on a JavaRDD[Vector].
Applies transformation on a JavaRDD[Vector].
- data
JavaRDD[Vector] to be transformed.
- returns
transformed JavaRDD[Vector].
- Definition Classes
- VectorTransformer
- Annotations
- @Since("1.1.0")
- def transform(data: RDD[Vector]): RDD[Vector]
Applies transformation on an RDD[Vector].
Applies transformation on an RDD[Vector].
- data
RDD[Vector] to be transformed.
- returns
transformed RDD[Vector].
- Definition Classes
- VectorTransformer
- Annotations
- @Since("1.1.0")
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)