Package

com.salesforce.op

test

Permalink

package test

Visibility
  1. Public
  2. All

Type Members

  1. trait FeatureTypeEquality[O <: FeatureType] extends AnyRef

    Permalink

    Feature Type equality instances mixin.

    Feature Type equality instances mixin. Allowing users to customize equality in tests, for example to allow numerical tolerance.

    O

    feature type

  2. abstract class OpEstimatorSpec[O <: FeatureType, ModelType <: Model[ModelType] with OpPipelineStage[O] with OpTransformer, EstimatorType <: Estimator[ModelType] with OpPipelineStage[O]] extends OpPipelineStageSpec[O, EstimatorType]

    Permalink

    Base test class for testing OP estimator instances.

    Base test class for testing OP estimator instances. Includes common tests for fitting estimator and verifying the fitted model.

    O

    output feature type

    ModelType

    model type produced by this estimator

    EstimatorType

    type of the estimator being tested

  3. trait OpPipelineStageAsserts extends AppendedClues

    Permalink

    Stage assertion for OpPipelineStage

  4. abstract class OpPipelineStageSpec[O <: FeatureType, StageType <: OpPipelineStage[O]] extends FlatSpec with FeatureTypeEquality[O] with TestSparkContext with OpPipelineStageAsserts

    Permalink

    Spec for testing OpPipelineStage instances (transformers or estimators).

    Spec for testing OpPipelineStage instances (transformers or estimators). Includes common tests for output feature, copy, serialization, json read/write etc.

    O

    output feature type

    StageType

    OpPipelineStage type being tested (transformer or estimator)

  5. abstract class OpTransformerSpec[O <: FeatureType, TransformerType <: OpPipelineStage[O] with Transformer with OpTransformer] extends OpPipelineStageSpec[O, TransformerType] with TransformerSpecCommon[O, TransformerType]

    Permalink

    Base test class for testing OpPipelineStage instances (transformers or estimators).

    Base test class for testing OpPipelineStage instances (transformers or estimators). Includes common tests for schema and data transformations.

    O

    output feature type

    TransformerType

    type of the transformer being tested

  6. abstract class SwTransformerSpec[O <: FeatureType, SparkTransformerType <: Transformer with Params, TransformerType <: OpPipelineStage[O] with Transformer with Params with SparkWrapperParams[SparkTransformerType]] extends OpPipelineStageSpec[O, TransformerType] with TransformerSpecCommon[O, TransformerType]

    Permalink

    Base test class for testing Spark transformer wrapper instances, e.g SwUnaryTransformer, SwBinaryTransformer etc.

    Base test class for testing Spark transformer wrapper instances, e.g SwUnaryTransformer, SwBinaryTransformer etc. Includes common tests for schema and data transformations.

    O

    output feature type

    SparkTransformerType

    type of Spark transformer

    TransformerType

    type of Spark transformer wrapper being tested, e.g. SwUnaryTransformer, SwBinaryTransformer etc.

  7. sealed trait TestOpVectorColumnType extends AnyRef

    Permalink

    Represents a type of column associated with a feature in a vector metadata.

Value Members

  1. object TestOpVectorColumnType

    Permalink
  2. object TestOpVectorMetadataBuilder

    Permalink

    Helps construct OpVectorMetadata as expected from a stage

Ungrouped