API Reference

PartitionValueTransformation

class monad.ui.config.PartitionValueTransformation

Type of transformation determine the id of the partition.

from monad.config.training_params import PartitionValueTransformation

PartitionValueTransformation.EXACT_GROUP
Enum Members

HASH_MOD
Can be used for any values in the partition column. The chunk id is a hash of partition column value modulo number of chunks.


EXACT_GROUP
Can be used for any values in the partition column. Partitions will be created to obtain a similar size of each chunk. Should not be used with high cardinality columns as it might be cost-ineffective.


EXACT_INT_MOD
Can be used when partition values are integers of any range. Values will be distributed to chunks based on the modulo of a number of partitions.


EXACT_INT
Can be used when partition column values are consecutive integers in the range [0, number of partitions - 1]. Chunk id is the value in the partition column.