Class/Object

io.github.mandar2812.dynaml.models.svm

KernelSparkModel

Related Docs: object KernelSparkModel | package svm

Permalink

abstract class KernelSparkModel extends KernelizedModel[RDD[(Long, LabeledPoint)], RDD[LabeledPoint], DenseVector[Double], DenseVector[Double], Double, Int, Int] with Serializable

Implementation of the Fixed Size Kernel based LS SVM

Fixed Size implies that the model chooses a subset of the original data to calculate a low rank approximation to the kernel matrix.

Feature Extraction is done in the primal space using the Nystrom approximation.

Linear Supertypes
Serializable, Serializable, KernelizedModel[RDD[(Long, LabeledPoint)], RDD[LabeledPoint], DenseVector[Double], DenseVector[Double], Double, Int, Int], EvaluableModel[DenseVector[Double], Double], GloballyOptimizable, LinearModel[RDD[(Long, LabeledPoint)], DenseVector[Double], DenseVector[Double], Double, RDD[LabeledPoint]], ParameterizedLearner[RDD[(Long, LabeledPoint)], DenseVector[Double], DenseVector[Double], Double, RDD[LabeledPoint]], Model[RDD[(Long, LabeledPoint)], DenseVector[Double], Double], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KernelSparkModel
  2. Serializable
  3. Serializable
  4. KernelizedModel
  5. EvaluableModel
  6. GloballyOptimizable
  7. LinearModel
  8. ParameterizedLearner
  9. Model
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KernelSparkModel(data: RDD[LabeledPoint], task: String)

    Permalink

Abstract Value Members

  1. abstract def clearParameters(): Unit

    Permalink
    Definition Classes
    LinearModel
  2. abstract def evaluate(config: Map[String, String]): Metrics[Double]

    Permalink
    Definition Classes
    EvaluableModel
  3. abstract def evaluateFold(params: DenseVector[Double])(test_data_set: RDD[LabeledPoint])(task: String): Metrics[Double]

    Permalink
    Definition Classes
    KernelizedModel
  4. abstract def getRegParam: Double

    Permalink
  5. abstract def learn(): Unit

    Permalink

    Learn the parameters of the model.

    Learn the parameters of the model.

    Definition Classes
    ParameterizedLearner
  6. abstract val optimizer: RegularizedOptimizer[DenseVector[Double], DenseVector[Double], Double, RDD[LabeledPoint]]

    Permalink
    Attributes
    protected
    Definition Classes
    ParameterizedLearner
  7. abstract val params: DenseVector[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    ParameterizedLearner
  8. abstract def predict(point: DenseVector[Double]): Double

    Permalink

    Predict the value of the target variable given a point.

    Predict the value of the target variable given a point.

    Definition Classes
    Model

Concrete 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. def _current_state: Map[String, Double]

    Permalink
    Definition Classes
    GloballyOptimizable
  5. def _hyper_parameters: List[String]

    Permalink
    Definition Classes
    GloballyOptimizable
  6. def applyFeatureMap: Unit

    Permalink
    Definition Classes
    KernelSparkModelKernelizedModel
  7. def applyKernel(kernel: SVMKernel[DenseMatrix[Double]], M: Int = math.sqrt(npoints).toInt): Unit

    Permalink

    Implements the changes in the model after application of a given kernel.

    Implements the changes in the model after application of a given kernel.

    It calculates

    1) Eigen spectrum of the kernel

    2) Calculates an approximation to the non linear feature map induced by the application of the kernel

    kernel

    A kernel object.

    M

    The number of prototypes to select in order to approximate the kernel matrix.

    Definition Classes
    KernelSparkModelKernelizedModel
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val colStats: MultivariateStatisticalSummary

    Permalink
  11. def crossvalidate(folds: Int, reg: Double, optionalStateFlag: Boolean = false): (Double, Double, Double)

    Permalink
    Definition Classes
    KernelizedModel
  12. var current_state: Map[String, Double]

    Permalink

    A Map which stores the current state of the system.

    A Map which stores the current state of the system.

    Attributes
    protected
    Definition Classes
    KernelizedModelGloballyOptimizable
  13. def data: RDD[(Long, LabeledPoint)]

    Permalink
    Definition Classes
    Model
  14. var effectivedims: Int

    Permalink
    Attributes
    protected
  15. def energy(h: Map[String, Double], options: Map[String, String]): Double

    Permalink

    Calculates the energy of the configuration, in most global optimization algorithms we aim to find an approximate value of the hyper-parameters such that this function is minimized.

    Calculates the energy of the configuration, in most global optimization algorithms we aim to find an approximate value of the hyper-parameters such that this function is minimized.

    h

    The value of the hyper-parameters in the configuration space

    options

    Optional parameters about configuration

    returns

    Configuration Energy E(h)

    Definition Classes
    KernelSparkModelGloballyOptimizable
  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. var featureMap: (DenseVector[Double]) ⇒ DenseVector[Double]

    Permalink

    The non linear feature mapping implicitly defined by the kernel applied, this is initialized to an identity map.

    The non linear feature mapping implicitly defined by the kernel applied, this is initialized to an identity map.

    Definition Classes
    LinearModel
  19. var featuredims: Int

    Permalink
    Attributes
    protected
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. val g: RDD[(Long, LabeledPoint)]

    Permalink

    The training data

    The training data

    Attributes
    protected
    Definition Classes
    KernelSparkModelModel
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getXYEdges: RDD[LabeledPoint]

    Permalink
    Definition Classes
    KernelSparkModelKernelizedModel
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. var hyper_parameters: List[String]

    Permalink

    Stores the names of the hyper-parameters

    Stores the names of the hyper-parameters

    Attributes
    protected
    Definition Classes
    KernelizedModelGloballyOptimizable
  26. def initParams(): DenseVector[Double]

    Permalink
    Definition Classes
    KernelSparkModelParameterizedLearner
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. val logger: Logger

    Permalink
  29. val nPoints: Long

    Permalink
    Attributes
    protected
    Definition Classes
    KernelSparkModelKernelizedModel
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  33. def npoints: Long

    Permalink
    Definition Classes
    KernelizedModel
  34. def optimumSubset(M: Int): Unit

    Permalink

    Calculate an approximation to the subset of size M with the maximum entropy.

    Calculate an approximation to the subset of size M with the maximum entropy.

    Definition Classes
    KernelSparkModelKernelizedModel
  35. def parameters(): DenseVector[Double]

    Permalink

    Get the value of the parameters of the model.

    Get the value of the parameters of the model.

    Definition Classes
    ParameterizedLearner
  36. def persist(state: Map[String, Double]): Unit

    Permalink
    Definition Classes
    GloballyOptimizable
  37. var points: List[Long]

    Permalink

    This variable stores the indexes of the prototype points of the data set.

    This variable stores the indexes of the prototype points of the data set.

    Attributes
    protected
    Definition Classes
    KernelizedModel
  38. var processed_g: RDD[(Long, LabeledPoint)]

    Permalink
    Attributes
    protected
  39. var prototypes: List[DenseVector[Double]]

    Permalink
    Attributes
    protected
  40. def setBatchFraction(f: Double): KernelSparkModel.this.type

    Permalink
    Definition Classes
    ParameterizedLearner
  41. def setLearningRate(alpha: Double): KernelSparkModel.this.type

    Permalink
    Definition Classes
    ParameterizedLearner
  42. def setMaxIterations(i: Int): KernelSparkModel.this.type

    Permalink
    Definition Classes
    ParameterizedLearner
  43. def setMiniBatchFraction(f: Double): KernelSparkModel.this.type

    Permalink
  44. def setRegParam(r: Double): KernelSparkModel.this.type

    Permalink
    Definition Classes
    ParameterizedLearner
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. val task: String

    Permalink
    Attributes
    protected
    Definition Classes
    KernelizedModel
  47. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  48. def trainTest(test: List[Long]): (RDD[LabeledPoint], RDD[LabeledPoint])

    Permalink
    Definition Classes
    KernelSparkModelKernelizedModel
  49. def updateParameters(param: DenseVector[Double]): Unit

    Permalink
    Definition Classes
    ParameterizedLearner
  50. implicit val vecField: VectorField

    Permalink
  51. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from KernelizedModel[RDD[(Long, LabeledPoint)], RDD[LabeledPoint], DenseVector[Double], DenseVector[Double], Double, Int, Int]

Inherited from EvaluableModel[DenseVector[Double], Double]

Inherited from GloballyOptimizable

Inherited from LinearModel[RDD[(Long, LabeledPoint)], DenseVector[Double], DenseVector[Double], Double, RDD[LabeledPoint]]

Inherited from ParameterizedLearner[RDD[(Long, LabeledPoint)], DenseVector[Double], DenseVector[Double], Double, RDD[LabeledPoint]]

Inherited from Model[RDD[(Long, LabeledPoint)], DenseVector[Double], Double]

Inherited from AnyRef

Inherited from Any

Ungrouped