io.prediction.controller.java

LJavaAlgorithm

abstract class LJavaAlgorithm[PD, M, Q, P] extends LAlgorithm[PD, M, Q, P]

Base class of a local algorithm.

A local algorithm runs locally within a single machine and produces a model that can fit within a single machine.

Linear Supertypes
LAlgorithm[PD, M, Q, P], LModelAlgorithm[M, Q, P], BaseAlgorithm[RDD[PD], RDD[M], Q, P], WithBaseQuerySerializer, AbstractDoer, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LJavaAlgorithm
  2. LAlgorithm
  3. LModelAlgorithm
  4. BaseAlgorithm
  5. WithBaseQuerySerializer
  6. AbstractDoer
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LJavaAlgorithm()

Abstract Value Members

  1. abstract def predict(model: M, query: Q): P

    Implement this method to produce a prediction from a query and trained model.

    Implement this method to produce a prediction from a query and trained model.

    model

    Trained model produced by train.

    query

    An input query.

    returns

    A prediction.

    Definition Classes
    LJavaAlgorithmLAlgorithmLModelAlgorithm
  2. abstract def train(pd: PD): M

    Implement this method to produce a model from prepared data.

    Implement this method to produce a model from prepared data.

    pd

    Prepared data for model training.

    returns

    Trained model.

    Definition Classes
    LJavaAlgorithmLAlgorithm

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def batchPredict(model: M, queries: Iterator[(Long, Q)]): Iterator[(Long, P)]

    Definition Classes
    LModelAlgorithm
  8. def batchPredictBase(baseModel: Any, baseQueries: RDD[(Long, Q)]): RDD[(Long, P)]

    Definition Classes
    LModelAlgorithm
  9. def batchPredictWrapper(model: Iterator[M], queries: Iterator[(Long, Q)]): Iterator[(Long, P)]

    Definition Classes
    LModelAlgorithm
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  15. def getModel(baseModel: Any): RDD[Any]

    Definition Classes
    LModelAlgorithm
  16. def hashCode(): Int

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

    Definition Classes
    Any
  18. def isJava: Boolean

    Definition Classes
    LJavaAlgorithmLAlgorithmBaseAlgorithm
  19. def isParallel: Boolean

    Definition Classes
    LAlgorithmBaseAlgorithm
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def predictBase(localBaseModel: Any, query: Q): P

    Definition Classes
    LModelAlgorithm
  24. def queryClass(): Class[Q]

    Returns a Class object of Q for internal use.

  25. def queryManifest(): Manifest[Q]

    Definition Classes
    BaseAlgorithm
  26. lazy val querySerializer: Formats

    Definition Classes
    WithBaseQuerySerializer
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def trainBase(sc: SparkContext, pd: RDD[PD]): RDD[M]

    Do not use directly or override this method, as this is called by PredictionIO workflow to train a model.

    Do not use directly or override this method, as this is called by PredictionIO workflow to train a model.

    Definition Classes
    LAlgorithmBaseAlgorithm
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LAlgorithm[PD, M, Q, P]

Inherited from LModelAlgorithm[M, Q, P]

Inherited from BaseAlgorithm[RDD[PD], RDD[M], Q, P]

Inherited from WithBaseQuerySerializer

Inherited from AbstractDoer

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped