Categories

Versions

Generate Session ID (Operator Toolbox)

Synopsis

This operator creates a new attribute with a consecutive id identifying a session.

Description

A session is defined as a series of dates with less than max gap time units between them. The max gap threshold and its unit can be configured. A possible subsequent operator is Group Into Collection to process each session separately.

Input

  • exa (Data table)

    The input ExampleSet

Output

  • out (Data table)

    The resulting ExampleSet with the new Session id.

  • ori (Data table)

    The original ExampleSet.

Parameters

  • date attribute The name of the attribute which contains the date to be used.
  • gap threshold The maximum difference between two dates that will still belong to the same session.
  • gap unit Unit of the gap threshold. If "none" is selected, this operator can also be applied on numerical attributes. The threshold is specified without sign (i.e. as an absolute value).
  • use absolutes If activated the absolute difference between two examples is used.

Tutorial Processes

Creating a session id on dummy data

In this example we first create a dummy data set with the Create ExampleSet operator. This data set has two sessions: one is in January and the other is in February. The Create Session ID operator generates session IDs for them. It is also possible to run this operator on numerical attributes. In this case you can select "None" as date unit. The threshold is specified without sign (i.e. as an absolute value).