Aggregate Selector
Functionality to select the best aggregate for each prepared variable.
entropy(col)
Calculates the entropy of a column.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
col
|
Series
|
The column for which to calculate the entropy. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The entropy of |
Source code in src/logos/preparation/aggregate_selector.py
find_uninformative_aggregates(prepared_log, parsed_variables, causal_unit_var)
Find aggregates that are uninformative for each column in the
prepared_log. Aggregates are uninformative unless they maximize the
empirical entropy across causal units.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prepared_log
|
DataFrame
|
The prepared log. |
required |
parsed_variables
|
DataFrame
|
The parsed variables. |
required |
causal_unit_var
|
str
|
The name of the causal unit variable. |
required |
Returns:
| Type | Description |
|---|---|
list[str]
|
A list of uninformative aggregates for |