Features
Last updated
Last updated
Features are entity-level attributes, representing all the things we know of entities. Lynk makes it simple to create features, based on related data assets or related entities.
Field features are great for enrichments from one-to-one or many-to-one relations. It is commonly used to enrich an entity with simple, non aggregate fields from one-to-one related assets or entities. See more in depth information on .
Metric features are great for aggregations from one-to-many relations. It is commonly used to enrich an entity with aggregated fields from one-to-many related assets or entities. See more in depth information on .
First-Last features are great for enrichments of fields from one-to-many relations. It is commonly used to enrich an entity with fields of the first or last appearance of a one-to-many related assets or entities. See more in depth information on .
Formula features are used when we need to create calculated features on top of other features. It is commonly used to enrich an entity with more complex calculations that require multiple aggregations or calculations to be done first. See more in depth information on .
Lynk supports creating features based on previously created features on related entities.
For example, let's assume we have an entity called user
and another entity called team
, with in a many-to-one relationship. You can create a feature called is_active_user
on the user
level and consume it for creating a metric feature active_users_count
on the team
entity level.
For example, here is a simple SQL API request to get some features defined on a customer level:
Features have unique names
Features have unique definitions
Monitoring relationship type to make sure feature definitions won't break
This allows building consistent, accessible and governed business logic - See for in depth information about this.
Features are consumed via , or via Lynk .
See for in depth information on this.
Lynk separates between business logic and time aggregations like rolling_window on the consumption layer. See for in depth information on this.
Lynk makes sure features are unique and trusted: