CategoricalDomain

class pqp.data.CategoricalDomain(values)

Bases: DiscreteDomain

Domain of a categorical variable

Methods Summary

describe_assumptions()

Returns a human readable description of assumptions made about the domain

get_cardinality()

Calculates the cardinality of the domain

get_values()

Returns a list of all possible values in the domain

Methods Documentation

describe_assumptions()

Returns a human readable description of assumptions made about the domain

get_cardinality()

Calculates the cardinality of the domain

Returns:

the number of possible values in the domain

Return type:

int

get_values()

Returns a list of all possible values in the domain

Returns:

all possible values in the domain

Return type:

list