com.redhat.et.silex.feature.extractor

Extractor

object Extractor extends Serializable

Factory methods for creating various flavors of feature Extractor.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Extractor
  2. Serializable
  3. Serializable
  4. AnyRef
  5. 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. def apply[D](fList: (D) ⇒ Double*): Extractor[D]

    Obtain a new extractor that computes its values from zero or more functions

    Obtain a new extractor that computes its values from zero or more functions

    fList

    Zero or more functions from domain to individual feature values.

    returns

    An extractor that returns feature sequence (f0(d), f1(d), ...)

  7. def apply[D](width: Int, function: (D) ⇒ FeatureSeq): Extractor[D]

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def constant[D](vList: Double*): Extractor[D]

    Obtain a new extractor that always returns the same constant features

    Obtain a new extractor that always returns the same constant features

    vList

    Zero or more values that will be returned as a constant FeatureSeq

    returns

    A constant-valued extractor that always returns feature sequence (v0, v1, ...)

  11. def empty[D]: Extractor[D]

    Obtain a new empty extractor: an extractor returning FeatureSeq of zero length

    Obtain a new empty extractor: an extractor returning FeatureSeq of zero length

    returns

    An extractor that returns feature sequences of zero length.

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  21. def numeric[N](jList: Int*)(implicit arg0: Numeric[N]): Extractor[PartialFunction[Int, N]]

    Obtain a new extractor that selects numeric values by a list of indices

    Obtain a new extractor that selects numeric values by a list of indices

    jList

    Zero or more indices

    returns

    An extractor that returns feature sequence (d(j0), d(j1), ...)

  22. def numericSeq[N](w: Int)(implicit arg0: Numeric[N]): Extractor[Seq[N]]

    Obtain a new extractor that loads an entire numeric sequence into a feature sequence

    Obtain a new extractor that loads an entire numeric sequence into a feature sequence

    w

    The width of the extractor, and required input sequence length

    returns

    an extractor that will load sequences of numeric values into a feature sequence

  23. def quadraticByIndex[D](extr: Extractor[D], indexes: Seq[Int], diag: Boolean = false): Extractor[FeatureSeq]

    Generate a quadratic expansion over a set of features by their index.

    Generate a quadratic expansion over a set of features by their index.

    extr

    The Extractor whose output features are to be expanded.

    indexes

    A list of the feature indexes to expand.

    diag

    If true, expand features with themselves (square them). Otherwise, only generate products with other features. Defaults to false.

    returns

    An extractor whose domain is the output of this extractor, which computes the pairwise products of the given features.

  24. def quadraticByName[D](extr: Extractor[D], features: Seq[String], diag: Boolean = false): Extractor[FeatureSeq]

    Generate a quadratic expansion over a set of named features.

    Generate a quadratic expansion over a set of named features.

    extr

    The Extractor whose output features are to be expanded.

    features

    A list of feature names to expand.

    diag

    If true, expand features with themselves (square them). Otherwise, only generate products with other features. Defaults to false.

    returns

    An extractor whose domain is the output of this extractor, which computes the pairwise products of the given features.

  25. def string(jList: Int*): Extractor[PartialFunction[Int, String]]

    Obtain a new extractor that selects numeric strings by a list of indices, and converts them to Double.

    Obtain a new extractor that selects numeric strings by a list of indices, and converts them to Double.

    jList

    Zero or more indices

    returns

    An extractor that returns feature sequence (d(j0).toDouble, d(j1).toDouble, ...)

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped