Class Date

java.lang.Object
smile.data.formula.Date
All Implemented Interfaces:
Serializable, Term

public class Date extends Object implements Term
Date/time feature extractor.
See Also:
  • Constructor Details

    • Date

      public Date(String name, DateFeature... features)
      Constructor.
      Parameters:
      name - the name of variable/column.
      features - the date/time features to extract.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • variables

      public Set<String> variables()
      Description copied from interface: Term
      Returns the set of variables used in this term.
      Specified by:
      variables in interface Term
      Returns:
      the set of variables used in this term.
    • bind

      public List<Feature> bind(StructType schema)
      Description copied from interface: Term
      Binds the term to a schema.
      Specified by:
      bind in interface Term
      Parameters:
      schema - the schema to bind the term with.
      Returns:
      the feature list.