tki.TKI¶
- class tki.TKI(dataset: DataFrame, dimensions: List[Dimension], measurements: List[Dimension], extractors: Set[Extractor], aggregators: Set[Aggregator], insights: Set[Insight], depth: int = 2, result_size: int = 12, time_limit: int = 10)¶
Top-K Insights
Parameters¶
- datasetpandas.DataFrame
Dataset to retrieve Insights from
- dimensionsList[Dimension]
List of Dimension objects
- measurementsList[Dimension]
List of Dimension objects
- extractorsSet[Extractor]
Set of Extractor classes to use
- aggregatorsSet[Aggregator]
Set of Aggregator classes to use
- insightsSet[Insight]
Set of Insight objects
- depthint
Depth of composite Extractors. Defaults to 2.
- result_sizeint
Number of Insights to retrieve. Defaults to 12.
- time_limitint
Time Limit for execution in seconds. Defaults to 10.
- __init__(dataset: DataFrame, dimensions: List[Dimension], measurements: List[Dimension], extractors: Set[Extractor], aggregators: Set[Aggregator], insights: Set[Insight], depth: int = 2, result_size: int = 12, time_limit: int = 10)¶
Methods
__init__(dataset, dimensions, measurements, ...)load(filename)Loads Insights Results from file
run()Start insight extraction.
save(filename)Saves Insights Results to file