Models

The open model hub is a toolkit that contains functions and models that can be applied on data collected with Objectiv’s Tracker. The following types of functions/models are available:

  1. Helper functions: Simplify manipulating and analyzing the data.
  2. Aggregation models: Enable running some of the more common data analyses and product analytics metrics.
  3. Machine learning models: ML models such as logistic regression.
  4. Funnels: To analyze Funnels, e.g. discover all the (top) user journeys that lead to conversion or drop-off.

Helper functions

Helper functions always return a series with the same shape and index as the DataFrame they are applied to. This ensures they can be added as a column to that DataFrame. Helper functions that return SeriesBoolean can be used to filter the data. The helper functions can be accessed with the map accessor from a model hub instance.

is_first_session(data)Labels all hits in a session True if that session is the first session of that user in the data.
is_new_user(data[, time_aggregation])Labels all hits True if the user is first seen in the period given time_aggregation.
is_conversion_event(data, name)Labels a hit True if it is a conversion event, all other hits are labeled False.
conversions_counter(data, name[, partition])Counts the total number of conversions given a partition (ie session_id or user_id).
conversions_in_time(data, name[, partition])Counts the number of time a user is converted at a moment in time given a partition (ie 'session_id' or 'user_id').
pre_conversion_hit_number(data, name[, ...])Returns a count backwards from the first conversion, given the partition.

Aggregation models

Aggregation models perform multiple Bach instructions that run some of the more common data analyses or product analytics metrics. Always return aggregated data in some form from the DataFrame the model is applied to. Aggregation models can be accessed with the aggregate accessor from a model hub instance.

unique_users(data[, groupby])Calculate the unique users in the Objectiv data.
unique_sessions(data[, groupby])Calculate the unique sessions in the Objectiv data.
session_duration(data[, groupby, ...])Calculate the duration of sessions.
frequency(data)Calculate a frequency table for the number of users by number of sessions.
retention_matrix(data[, time_period, ...])Finds the number of users in a given cohort who are active at a given time period, where time is computed with respect to the beginning of each cohort.
top_product_features(data[, location_stack, ...])Calculate the top used features in the product.
top_product_features_before_conversion(data, ...)Calculates what users did before converting by combining several models from the model hub.

Machine learning models

Currently we support LogisticRegression directly on Bach DataFrames and Series.

Funnels

Currently we support FunnelDiscovery directly on Bach DataFrames.