Class

com.salesforce.op.dsl.RichDateFeature

RichDateFeature

Related Doc: package RichDateFeature

Permalink

implicit class RichDateFeature extends AnyRef

Enrichment functions for Date Feature

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichDateFeature
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichDateFeature(f: FeatureLike[Date])

    Permalink

    f

    Date Feature

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. val f: FeatureLike[Date]

    Permalink

    Date Feature

  9. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. def toDateList(): FeatureLike[DateList]

    Permalink

    Convert to DateList feature

  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. def toUnitCircle(timePeriod: TimePeriod = TimePeriod.HourOfDay, others: Array[FeatureLike[Date]] = Array.empty): FeatureLike[OPVector]

    Permalink

    transforms a Date field into a cartesian coordinate representation of an extracted time period on the unit circle

    transforms a Date field into a cartesian coordinate representation of an extracted time period on the unit circle

    timePeriod

    The time period to extract from the timestamp

    others

    Other features of same type enum from: DayOfMonth, DayOfWeek, DayOfYear, HourOfDay, WeekOfMonth, WeekOfYear

  20. def vectorize(dateListPivot: DateListPivot, referenceDate: DateTime = ..., trackNulls: Boolean = TransmogrifierDefaults.TrackNulls, circularDateReps: Seq[TimePeriod] = ..., others: Array[FeatureLike[Date]] = Array.empty): FeatureLike[OPVector]

    Permalink

    Converts DateTime features into cartesian coordinate representation of an extracted time periods (specified in circularDateRepresentations as seq of: DayOfMonth, DayOfWeek, DayOfYear, HourOfDay, WeekOfMonth, WeekOfYear) on the unit circle.

    Converts DateTime features into cartesian coordinate representation of an extracted time periods (specified in circularDateRepresentations as seq of: DayOfMonth, DayOfWeek, DayOfYear, HourOfDay, WeekOfMonth, WeekOfYear) on the unit circle. Also converts a sequence of Date features into DateList feature and then applies DateList vectorizer.

    DateListPivot can specify: 1) SinceFirst - replace the feature by the number of days between the first event and reference date 2) SinceLast - replace the feature by the number of days between the last event and reference date 3) ModeDay - replace the feature by a pivot that indicates the mode of the day of the week Example : If the mode is Monday then it will return (1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) 4) ModeMonth - replace the feature by a pivot that indicates the mode of the month 5) ModeHour - replace the feature by a pivot that indicates the mode of the hour of the day.

    dateListPivot

    name of the pivot type from DateListPivot enum

    referenceDate

    reference date to compare against when DateListPivot is SinceFirst or SinceLast

    trackNulls

    option to keep track of values that were missing

    circularDateReps

    list of all the circular date representations that should be included in feature vector

    others

    other features of same type

    returns

    result feature of type Vector

  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped