Trait

org.apache.flink.ml.pipeline

PredictOperation

Related Doc: package pipeline

Permalink

trait PredictOperation[Instance, Model, Testing, Prediction] extends Serializable

Type class for predict operation. It takes an element and the model and then computes the prediction value for this element.

It is sufficient for a Predictor to only implement this trait to support the evaluate and predict method.

Instance

The concrete type of the Predictor that we will use for predictions

Model

The representation of the predictive model for the algorithm, for example a Vector of weights

Testing

The type of the example that we will use to make the predictions (input)

Prediction

The type of the label that the prediction operation will produce (output)

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PredictOperation
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getModel(instance: Instance, predictParameters: ParameterMap): DataSet[Model]

    Permalink

    Defines how to retrieve the model of the type for which this operation was defined

    Defines how to retrieve the model of the type for which this operation was defined

    instance

    The Predictor instance that we will use to make the predictions

    predictParameters

    The parameters for the prediction

    returns

    A DataSet with the model representation as its only element

  2. abstract def predict(value: Testing, model: Model): Prediction

    Permalink

    Calculates the prediction for a single element given the model of the Predictor.

    Calculates the prediction for a single element given the model of the Predictor.

    value

    The unlabeled example on which we make the prediction

    model

    The model representation of the prediction algorithm

    returns

    A label for the provided example of type Prediction

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped