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.

Distinct Count Of

Prev Next

Count the number of unique values (combinations for multiple subjects) for set of one or more attributes.

For example:

  • The number of Device Signatures associated with an Account.
  • The number of Mouse or Touch Signatures associated with a Device Signature.
  • The Number of unique accounts that this IP attempted to log in to in the last 10 minutes
  • The Number of time zones this account has been seen in

Configuration

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

  • Attributes - selects which attribute(s) to measure the unique value/combination(s) of

    • Only Identifier and Subject attributes can be used.
  • 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.
  • 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

Calculate the number of Device Signatures that have logged into an Account within a 3 month period.

Implementing In The Feature Editor

image.png

image.png

image.png

image.png

  - name: device_sig_for_account_3mth
    default_value: 0
    time_window: all
    starting: immediately
    find_the:
      distinct_count_of:
        attributes:
          - device_signature['VER_1'].identifier
        for_events:
          event_type:
            - account_login_success
          include_current_event: false
          with_the_same:
            - identity['ACCOUNT'].customer_token.customer_token
    with_scope: same_node_instance