io.prediction.workflow

FakeRun

trait FakeRun extends EngineFactory with Evaluation with EngineParamsGenerator

FakeRun allows user to implement custom function under the exact enviroment as other PredictionIO workflow.

Useful for developing new features. Only need to extend this trait and implement a function: (SparkContext => Unit). For example, the code below can be run with pio eval HelloWorld.

object HelloWorld extends FakeRun {
// func defines the function pio runs, must have signature (SparkContext => Unit).
func = f

def f(sc: SparkContext): Unit {
  val logger = Logger[this.type]
  logger.info("HelloWorld")
}
}
Annotations
@Experimental()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FakeRun
  2. EngineParamsGenerator
  3. Evaluation
  4. Deployment
  5. EngineFactory
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. var _engine: BaseEngine[_, _, _, _]

    Attributes
    protected[this]
    Definition Classes
    Deployment
  7. var _evaluator: BaseEvaluator[_, _, _, _, _ <: BaseEvaluatorResult]

    Attributes
    protected[this]
    Definition Classes
    Evaluation
  8. var _evaluatorSet: Boolean

    Attributes
    protected[this]
    Definition Classes
    Evaluation
  9. def apply(): BaseEngine[_, _, _, _]

    Returns the Engine of this Deployment

    Returns the Engine of this Deployment

    Definition Classes
    DeploymentEngineFactory
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def engineEvaluator: (BaseEngine[_, _, _, _], BaseEvaluator[_, _, _, _, _])

    Gets the tuple of the Engine and the implementation of io.prediction.core.BaseEvaluator

    Gets the tuple of the Engine and the implementation of io.prediction.core.BaseEvaluator

    Definition Classes
    Evaluation
  13. def engineEvaluator_=[EI, Q, P, A, R <: BaseEvaluatorResult](engineEvaluator: (BaseEngine[EI, Q, P, A], BaseEvaluator[EI, Q, P, A, R])): Unit

    Sets both an Engine and an implementation of io.prediction.core.BaseEvaluator for this Evaluation

    Sets both an Engine and an implementation of io.prediction.core.BaseEvaluator for this Evaluation

    EI

    Evaluation information class

    Q

    Query class

    P

    Predicted result class

    A

    Actual result class

    R

    Metric result class

    engineEvaluator

    A tuple an Engine and an implementation of io.prediction.core.BaseEvaluator

    Definition Classes
    Evaluation
  14. def engineMetric: (BaseEngine[_, _, _, _], Metric[_, _, _, _, _])

    Returns both the Engine and the implementation of Metric for this Evaluation

    Returns both the Engine and the implementation of Metric for this Evaluation

    Definition Classes
    Evaluation
  15. def engineMetric_=[EI, Q, P, A](engineMetric: (BaseEngine[EI, Q, P, A], Metric[EI, Q, P, A, _])): Unit

    Sets both an Engine and an implementation of Metric for this Evaluation

    Sets both an Engine and an implementation of Metric for this Evaluation

    EI

    Evaluation information class

    Q

    Query class

    P

    Predicted result class

    A

    Actual result class

    engineMetric

    A tuple of Engine and an implementation of Metric

    Definition Classes
    Evaluation
  16. def engineMetrics_=[EI, Q, P, A](engineMetrics: (BaseEngine[EI, Q, P, A], Metric[EI, Q, P, A, _], Seq[Metric[EI, Q, P, A, _]])): Unit

    Sets an Engine, an implementation of Metric, and sequence of implementations of Metric for this Evaluation

    Sets an Engine, an implementation of Metric, and sequence of implementations of Metric for this Evaluation

    EI

    Evaluation information class

    Q

    Query class

    P

    Predicted result class

    A

    Actual result class

    engineMetrics

    A tuple of Engine, an implementation of Metric and sequence of implementations of Metric

    Definition Classes
    Evaluation
  17. def engineParams(key: String): EngineParams

    Override this method to programmatically return engine parameters.

    Override this method to programmatically return engine parameters.

    Definition Classes
    EngineFactory
  18. def engineParamsList: Seq[EngineParams]

    Returns the list of EngineParams of this EngineParamsGenerator.

    Returns the list of EngineParams of this EngineParamsGenerator.

    Definition Classes
    EngineParamsGenerator
  19. def engineParamsList_=(l: Seq[EngineParams]): Unit

    Sets the list of EngineParams of this EngineParamsGenerator.

    Sets the list of EngineParams of this EngineParamsGenerator.

    Definition Classes
    EngineParamsGenerator
  20. var engineSet: Boolean

    Attributes
    protected[this]
    Definition Classes
    Deployment
  21. def engine_=[EI, Q, P, A](engine: BaseEngine[EI, Q, P, A]): Unit

    Sets the Engine for this Deployment

    Sets the Engine for this Deployment

    EI

    Evaluation information class

    Q

    Query class

    P

    Predicted result class

    A

    Actual result class

    engine

    An implementation of Engine

    Definition Classes
    Deployment
  22. var epList: Seq[EngineParams]

    Attributes
    protected[this]
    Definition Classes
    EngineParamsGenerator
  23. var epListSet: Boolean

    Attributes
    protected[this]
    Definition Classes
    EngineParamsGenerator
  24. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def func: (SparkContext) ⇒ Unit

  28. def func_=(f: (SparkContext) ⇒ Unit): Unit

  29. final def getClass(): Class[_]

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

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

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

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

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

    Definition Classes
    AnyRef
  35. def runner: FakeRunner

  36. def runner_=(r: FakeRunner): Unit

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

    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from EngineParamsGenerator

Inherited from Evaluation

Inherited from Deployment

Inherited from EngineFactory

Inherited from AnyRef

Inherited from Any

Ungrouped