:py:mod:`sklearn_pmml_model.datatypes` ====================================== .. py:module:: sklearn_pmml_model.datatypes Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: sklearn_pmml_model.datatypes.Interval sklearn_pmml_model.datatypes.Category .. py:class:: Interval(closure, left_margin=None, right_margin=None) Class describing the interval (or range) of a numerical feature. :Parameters: **closure** : string String defining the closure of the interval, can be 'openClosed', 'openOpen', 'closedOpen' or 'closedClosed'. **categories** : list List of all categories for a particular feature. **ordered** : bool Boolean indicating whether the categories are ordinal (sorting categories makes sense) or not. .. !! processed by numpydoc !! .. py:method:: __contains__(value) .. py:class:: Category(base_type, categories, ordered=False) Class describing a categorical data type. :Parameters: **base_type** : callable The original native data type of the category. For example, `str`, `int` or `float`. **categories** : list List of all categories for a particular feature. **ordered** : bool Boolean indicating whether the categories are ordinal (sorting categories makes sense) or not. .. !! processed by numpydoc !! .. py:method:: __eq__(other) Return self==value. .. !! processed by numpydoc !! .. py:method:: __contains__(item) .. py:method:: __call__(value)