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.

Approximate Distinct Count Of

Prev Next

Approximate Distinct Count Of

Highly accurate approximation techniques are used to provide an estimate of the unique values of a set one or more attributes. Unlike Distinct Count, this feature does not require an Identifier to be used in the attribute selection and thus can be applied to a much wider range of use-cases.

Note

Unlike the Distinct Count Of feature, Approximate Distinct Count Of allows the use of any attribute and is not restricted to Identifier or Subject attributes.

For Example:

  • Number times this user agent, OS etc has been seen in the last 2 weeks

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

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).
  • Time Window
    Can be used to limit the Feature calculation to a specific time period/window. e.g 1 week.

Implementing In The Feature Editor

image.png

image.png

  - name: cntx_os_usragn_2wk
    default_value: 0
    time_window:
      weeks: 2
    find_the:
      approx_distinct_count_of:
        attributes:
          - profiling.device.user_agent
        event_type: all
    with_scope: same_node_instance