Package

com.alpine.model.pack

preprocess

Permalink

package preprocess

Visibility
  1. Public
  2. All

Type Members

  1. case class Add(offset: Double) extends RealValuedFunction with Product with Serializable

    Permalink
  2. case class Divide(denominator: Double) extends RealValuedFunction with Product with Serializable

    Permalink
  3. case class Exp() extends RealValuedFunction with Product with Serializable

    Permalink
  4. case class LinearFunction(m: Double, c: Double) extends RealValuedFunction with Product with Serializable

    Permalink

    Represents the linear function y = m * x + c.

    Represents the linear function y = m * x + c. Can be constructed out of Add and Multiply functions, but included for convenience.

    Added in SDK 1.9 (Alpine-Chorus 6.3).

    m

    multiplier

    c

    constant offset

  5. case class Log() extends RealValuedFunction with Product with Serializable

    Permalink
  6. case class Log1p() extends RealValuedFunction with Product with Serializable

    Permalink
  7. case class MatrixModel(values: Seq[Seq[Double]], inputFeatures: Seq[ColumnDef], identifier: String = "") extends RowModel with PFAConvertible with Product with Serializable

    Permalink

    Created by Jennifer Thompson on 3/17/16.

    Created by Jennifer Thompson on 3/17/16.

    Annotations
    @SerialVersionUID()
  8. case class MatrixSQLTransformer(model: MatrixModel, sqlGenerator: SQLGenerator) extends SimpleSQLTransformer with Product with Serializable

    Permalink
  9. case class MatrixTransformer(model: MatrixModel) extends Transformer with Product with Serializable

    Permalink
  10. case class Multiply(coefficient: Double) extends RealValuedFunction with Product with Serializable

    Permalink
  11. case class NullValueReplacement(replacementValues: Seq[Any], inputFeatures: Seq[ColumnDef], identifier: String = "") extends RowModel with PFAConvertible with Product with Serializable

    Permalink

    Model that will replace null values in the input row with specified values.

    Model that will replace null values in the input row with specified values.

    Annotations
    @SerialVersionUID()
  12. case class NullValueReplacer(model: NullValueReplacement) extends Transformer with Product with Serializable

    Permalink
  13. class NullValueSQLReplacer extends SimpleSQLTransformer

    Permalink

    Assumes replacement values are either numeric or string.

  14. case class OneHotEncodedFeature(hotValues: Seq[String], baseValue: Option[String]) extends Product with Serializable

    Permalink

    One hot encoding for a single feature.

    One hot encoding for a single feature. The baseValue is encoded as all 0s to ensure a linear independence of the range.

    hotValues

    values to be encoded as 1 at the corresponding index, 0s elsewhere.

    baseValue

    value to be encoded as a vector as 0s.

  15. case class OneHotEncodingModel(oneHotEncodedFeatures: Seq[OneHotEncodedFeature], inputFeatures: Seq[ColumnDef], identifier: String = "") extends RowModel with PFAConvertible with Product with Serializable

    Permalink

    Model to apply one-hot encoding to categorical input features.

    Model to apply one-hot encoding to categorical input features. Result will be a sequence of 1s and 0s.

    Annotations
    @SerialVersionUID()
  16. case class OneHotEncodingSQLTransformer(model: OneHotEncodingModel, sqlGenerator: SQLGenerator) extends SQLTransformer with Product with Serializable

    Permalink
  17. case class OneHotEncodingTransformer(pivotsWithFeatures: Seq[OneHotEncodedFeature]) extends Transformer with Product with Serializable

    Permalink
  18. case class PolynomialModel(exponents: Seq[Seq[Double]], inputFeatures: Seq[ColumnDef], identifier: String = "") extends RowModel with PFAConvertible with Product with Serializable

    Permalink

    Model that creates output features that are polynomial combinations of the input features.

    Model that creates output features that are polynomial combinations of the input features.

    We use java.lang.Double for the type of the numeric values, because the scala Double type information is lost by scala/Gson and the deserialization fails badly for edge cases (e.g. Double.NaN).

    If the exponents are a matrix

    [[1,2,0], [0.5,3,2]]

    Then the transformation of a row (x1, x2, x3) will be

    (y1, y2) = (x1 * x2 pow 2, sqrt(x1) * x2 pow 3 * x3 pow 2).
    Annotations
    @SerialVersionUID()
  19. case class PolynomialSQLTransformer(model: PolynomialModel, sqlGenerator: SQLGenerator) extends SimpleSQLTransformer with Product with Serializable

    Permalink
  20. case class PolynomialTransformer(model: PolynomialModel) extends Transformer with Product with Serializable

    Permalink
  21. case class Power(p: Double) extends RealValuedFunction with Product with Serializable

    Permalink
  22. case class RealFunctionWithIndex(function: TypeWrapper[_ <: RealValuedFunction], index: Int) extends Product with Serializable

    Permalink
  23. trait RealValuedFunction extends AnyRef

    Permalink

    Interface for real-valued functions (functions that map the real (double) numbers to real (double) numbers) to be used in RealValuedFunctionsModel

  24. case class RealValuedFunctionTransformer(model: RealValuedFunctionsModel) extends Transformer with Product with Serializable

    Permalink
  25. case class RealValuedFunctionsModel(functions: Seq[RealFunctionWithIndex], inputFeatures: Seq[ColumnDef], identifier: String = "") extends RowModel with PFAConvertible with Product with Serializable

    Permalink
    Annotations
    @SerialVersionUID()
  26. case class RealValuedFunctionsSQLTransformer(model: RealValuedFunctionsModel, sqlGenerator: SQLGenerator) extends SimpleSQLTransformer with Product with Serializable

    Permalink
  27. case class RenamingModel(inputFeatures: Seq[ColumnDef], outputNames: Seq[String], identifier: String = "") extends RowModel with PFAConvertible with Product with Serializable

    Permalink

    Added in SDK 1.9 (Alpine-Chorus 6.3).

    Added in SDK 1.9 (Alpine-Chorus 6.3).

    This is like the unit model, except that it takes a list of names to be used for the output features. It passes along the content of its input as output.

    Created by Jennifer Thompson on 1/5/17.

    Annotations
    @SerialVersionUID()
  28. case class RenamingSQLTransformer(model: RenamingModel, sqlGenerator: SQLGenerator) extends SimpleSQLTransformer with Product with Serializable

    Permalink
  29. case class SingleOneHotEncoder(transform: OneHotEncodedFeature) extends Product with Serializable

    Permalink

    Applies One-hot encoding for a single feature.

    Applies One-hot encoding for a single feature. e.g. if hotValues = Seq["apple", "raspberry"] baseValue = "orange"

    apply("apple") = [1,0] apply("raspberry") = [0,1] apply("orange") = [0,0]

    apply("banana") throws exception "banana is an unrecognised value".

    transform

    case class wrapping hot values and base values.

  30. case class Subtract(offset: Double) extends RealValuedFunction with Product with Serializable

    Permalink

Value Members

  1. object MatrixModel extends Serializable

    Permalink
  2. object OneHotEncodedFeature extends Serializable

    Permalink
  3. object RealValuedFunctionsModel extends Serializable

    Permalink

Ungrouped