Object

utils

Trafo

Related Doc: package utils

Permalink

object Trafo

Provides auxiliary functions for list to tensor transformation

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Trafo
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def backTransformMatrix(X: List[List[Double]], pca: PCA, dim: Int = 1): List[List[Double]]

    Permalink

    Transforms a list of instances from PCA to original space

    Transforms a list of instances from PCA to original space

    X

    list of instances in PCA space

    pca

    PCA object

    dim

    optional cut-off to drop dimensions with less variance

  6. def backTransformVector(x: List[Double], pca: PCA, dim: Int = 1): List[Double]

    Permalink

    Transforms an instance from PCA to original space

    Transforms an instance from PCA to original space

    pca

    PCA object

    dim

    optional cut-off to drop dimensions with less variance

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def columnVectors(m: DenseMatrix[Double]): List[DenseVector[Double]]

    Permalink

    Returns a list of column vectors

  9. def covarianceEigen(pca: PCA): (List[Double], List[DenseVector[Double]], DenseVector[Double])

    Permalink

    Determines eigenvalues, eigenvectors and feature centers

  10. def createGrid(xMin: Double, xMax: Double, yMin: Double, yMax: Double, xSteps: Int = 100, ySteps: Int = 100): List[List[Double]]

    Permalink
  11. def dropElement[T](list: List[T], indices: List[Int]): List[T]

    Permalink

    Drops elements from list by index

    Drops elements from list by index

    list

    Source list

    indices

    Indices to drop

  12. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getPCA(X: List[List[Double]]): PCA

    Permalink

    Performs PCA and return PCA object good introduction: http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf

    Performs PCA and return PCA object good introduction: http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf

    X

    list of instances to perform PCA on

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def iloc[T](list: List[T], indices: List[Int], result: List[T] = Nil): List[T]

    Permalink

    Picks elements from a list according to a list of indices

    Picks elements from a list according to a list of indices

    list

    Source list

    indices

    Desired indices

    result

    Optional start parameter, also needed for recursion

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  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 randomizeInstances(X: DenseMatrix[Double], y: DenseVector[Double], nInst: Int): (DenseMatrix[Double], DenseVector[Double])

    Permalink

    Samples random instances from the given data

  24. def randomizeInstancesInt(X: DenseMatrix[Double], y: DenseVector[Int], nInst: Int): (DenseMatrix[Double], DenseVector[Int])

    Permalink

    Samples random instances from the given data

  25. def rowVectors(m: DenseMatrix[Double]): List[DenseVector[Double]]

    Permalink

    Returns a list of row vectors

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toList(v: DenseVector[Double]): List[Double]

    Permalink
  28. def toMatrix(X: List[List[Double]]): DenseMatrix[Double]

    Permalink

    Transform 2D list to 2D matrix

  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def toVector(y: List[Double]): DenseVector[Double]

    Permalink

    Transform 1D list to 1D vector

  31. def toVectorInt(y: List[Int]): DenseVector[Int]

    Permalink

    Transform 1D list to 1D vector of integers (breeze doesn't allow polymorphism?)

  32. def transformMatrix(X: List[List[Double]], pca: PCA, dim: Int = 1): List[List[Double]]

    Permalink

    Transforms a list of instances into the reference frame of the PCA

    Transforms a list of instances into the reference frame of the PCA

    X

    list of instances

    pca

    PCA object

    dim

    optional cut-off to drop dimensions with less variance

  33. def transformVector(x: List[Double], pca: PCA, dim: Int = 1): List[Double]

    Permalink

    Transforms an instance into the reference frame of the PCA

    Transforms an instance into the reference frame of the PCA

    x

    instance

    pca

    PCA object

    dim

    optional cut-off to drop dimensions with less variance

  34. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped