lenskit.data.schema.AllowableTroolean ===================================== .. py:class:: lenskit.data.schema.AllowableTroolean Bases: :py:obj:`enum.Enum` Stores both whether a feature is allowed and is used in the case of having repeats. For convenience, in serialized data or configuration files these values may be specified either as strings or as booleans, in which case ``False`` is :attr:`FORBIDDEN` and ``True`` is :attr:`ALLOWED`. They are always serialized as strings. .. py:attribute:: FORBIDDEN :value: 'forbidden' The feature is forbidden. .. py:attribute:: ALLOWED :value: 'allowed' The feature is allowed, but no records using it are present. .. py:attribute:: PRESENT :value: 'present' The feature is used by instances in the data. .. py:property:: is_allowed :type: bool Query whether the feature is allowed. .. py:property:: is_forbidden :type: bool Query whether the feature is forbidden. .. py:property:: is_present :type: bool Query whether the feature is present (used in recorded instances).