Documentation Index

Fetch the complete documentation index at: https://docs.darwinium.com/llms.txt

Use this file to discover all available pages before exploring further.

Distance From Last

Prev Next

Is the distance from the location of the current event to the location most recent event matching the criteria. The location is determined by selecting an appropriate coordinate attribute and can be calculated in mile or kilometer units.

For example:

  • Determining the distance travelled between the current event and the most recent Login
    • If a large distance has been travelled the user could be issued a step-up challenge or session expired
  • Distance of Shipping Address from last order
  • In some gaming industry use cases knowing that the user is moving large distances frequently could be used to mitigate regulatory risk

Configuration

  • Feature Name
    The "dictionary" name under which the feature value will be stored.

  • Coordinate Attribute

    • Selects the coordinate attribute to calculate the distance from this event.
  • For Events > With The Same

    • Only Identifier and Subject attributes can be used.
Note
  • At least one of the selected attributes must be an Identifier.
Optional Configuration
  • Default Value
    A value that can be assigned to the feature if the attributes to calculate the features are not present.
  • Scope
    Can be used to extend the event search from the local node, to all nodes within the same organization all the way to all across customers (global).
  • For Events
    Provides a way of filtering past events based on their type.
  • Condition
    A Query-Language filter that can be used to refine Features for specific use cases.
  • In Units
    Can be used to change the feature value output from kilometers to miles.
  • Time Window
    Can be used to limit the Feature calculation to a specific time period/window. e.g 1 week.
  • Starting ...
    Can be used to remove recent events from Feature calculation.

Use Case 1

Implementing In The Feature Editor

image.png

image.png

image.png

  - name: address_distance_from_last_order
    default_value: null
    time_window: all
    starting: immediately
    find_the:
      distance_from_last:
        events:
          event_type:
            - purchase
          include_current_event: false
          with_the_same:
            - identity['ACCOUNT'].login.login
        coordinate: profiling.tcp_connection['WEBRTC'].ipdb.coordinate
        in_units: miles
    with_scope: same_node_instance