facet.data.partition.CategoryPartitioner#
- class facet.data.partition.CategoryPartitioner(max_partitions=None)[source]#
Partition categorical values.
Create one partition each per unique value, considering only the
max_partitions
most frequent values.- Bases
Partitioner
[Any
]- Metaclasses
- Parameters
max_partitions (
Optional
[int
]) – the maximum number of partitions to generate; must be at least 2 (default: 20)
Method summary
Calculate the partitioning for the given observed values.
Attribute summary
DEFAULT_MAX_PARTITIONS
The count of values allocated to each partition.
True
True
if this object is fitted,False
otherwise.The maximum number of partitions to be generated by this partitioner.
The values representing the partitions.
Definitions
- property frequencies_: numpy.ndarray[Any, numpy.dtype[numpy.int64]]#
The count of values allocated to each partition.