com.alpine.transformer

Transformer

trait Transformer extends Serializable

Serialization doesn't have to be maintained between different versions for this object, since it it always created by a model, but it does need to be serializable for use in Spark jobs (for sending to worker nodes).

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Transformer
  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. type Row = Seq[Any]

    Shorthand for the input / output type of the Row) method.

    Shorthand for the input / output type of the Row) method. Equivalent to Seq[Any].

Abstract Value Members

  1. abstract def apply(row: Row): Row

    This method should be implemented with speed and garbage collection in mind, as it called once per row on potentially huge data-sets.

    This method should be implemented with speed and garbage collection in mind, as it called once per row on potentially huge data-sets.

    This method is not required to be thread-safe.

    row

    The row of input to be scored.

    returns

    The result from applying the trained model to the row.

Concrete 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 allowNullValues: Boolean

    Allows the transformer to specify if the apply method can handle null values in the input row.

    Allows the transformer to specify if the apply method can handle null values in the input row.

    e.g. a Null value replacement transformer, or a Naive Bayes transformer would naturally handle null values, but a Linear Regression transformer would not.

    Default value is false.

    returns

    Boolean indicating tolerance for null values in input.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped