org.apache.spark.ml.odkl

Evaluator

object Evaluator extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Evaluator
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class EmptyEvaluator extends Evaluator[EmptyEvaluator]

    Used in case when folding is needed, but not the evaluation

  2. class EvaluatingTransformer[M <: ModelWithSummary[M], E <: Evaluator[E]] extends ModelOnlyTransformer[M, EvaluatingTransformer[M, E]] with HasMetricsBlock

    Utility used for transparent injection of the evaluator into training chain.

  3. class PostProcessingEvaluator[E <: Evaluator[E]] extends Evaluator[PostProcessingEvaluator[E]]

  4. class TrainOnlyFilter extends Transformer with HasIsTestCol

    Utility used to filter out test data before passing to estimator.

  5. class TrainTestEvaluator[N <: Evaluator[N]] extends Evaluator[TrainTestEvaluator[N]] with HasIsTestCol

    This is a simple workaround to add kind of grouping by test/train column for evaluators without embedded support for grouping (eg.

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. def addFolds[M <: ModelWithSummary[M]](estimator: SummarizableEstimator[M], folder: FoldsAssigner = new FoldsAssigner()): UnwrappedStage[M, IdentityModelTransformer[M]]

    Adds folds (foldNum column) to the dataset before passing it to the nested estimator.

    Adds folds (foldNum column) to the dataset before passing it to the nested estimator.

    estimator

    Nested predictor for fitting the model

    folder

    Transformer adding folds (by default based on row hash)

    returns

    Estimator returning a model fit by nested predictor on a dataset with extra foldNum column

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def crossValidate[M <: ModelWithSummary[M], E <: Evaluator[E]](estimator: SummarizableEstimator[M], evaluator: E, numFolds: Int = 10, parallel: Boolean = false, cacheForks: Boolean = false): SummarizableEstimator[M]

    Performs a cross validation given predictor and evaluator.

    Performs a cross validation given predictor and evaluator. Returns a model with summary blocks extended with foldNum column.

    Split into folds is done based on the hash of entire row.

    estimator

    Nested predictor for fitting the model.

    evaluator

    Evaluator for creating a metric.

    numFolds

    Number of folds for validation (defeult 10)

    parallel

    Whenever to train and evaluate folds in parallel.

    cacheForks

    Whenever to cache forks before iterating

    returns

    Estimator which returns a model fit by the nested predictor on the entire dataset with summary blocks extended with numFolds column.

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

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

    Definition Classes
    AnyRef → Any
  12. def evaluate[M <: ModelWithSummary[M], E <: Evaluator[E]](estimator: SummarizableEstimator[M], evaluator: E): SummarizableEstimator[M]

    Fit and then evaluate model.

    Fit and then evaluate model. Results of evaluation is stored into a dedicated summary block.

    estimator

    Used to fit the model

    evaluator

    Used to evaluate the model.

    returns

    Estimator which returns a model fit by nested predictor with extra summary block for metrics, produced by evaluator.

  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 hashCode(): Int

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

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

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

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

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

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. def validateInFolds[M <: ModelWithSummary[M], E <: Evaluator[E]](estimator: SummarizableEstimator[M], evaluator: E, numFolds: Int = 10, parallel: Boolean = false, cacheForks: Boolean = false): CrossValidator[M]

    Performs a cross validation given predictor and evaluator.

    Performs a cross validation given predictor and evaluator. Returns a model with summary blocks extended with foldNum column.

    Split into folds is expected to be done externaly.

    estimator

    Nested predictor for fitting the model.

    evaluator

    Evaluator for creating a metric.

    numFolds

    Number of folds for validation (defeult 10)

    parallel

    Whenever to train and evaluate folds in parallel.

    cacheForks

    Whenever to cache forks before iterating

    returns

    Estimator which returns a model fit by the nested predictor on the entire dataset with summary blocks extended with numFolds column.

  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped