sklearn_pmml_model.datatypes#

Module Contents#

Classes#

Interval

Class describing the interval (or range) of a numerical feature.

Category

Class describing a categorical data type.

class sklearn_pmml_model.datatypes.Interval(closure, left_margin=None, right_margin=None)#

Class describing the interval (or range) of a numerical feature.

Parameters:
closurestring

String defining the closure of the interval, can be ‘openClosed’, ‘openOpen’, ‘closedOpen’ or ‘closedClosed’.

categorieslist

List of all categories for a particular feature.

orderedbool

Boolean indicating whether the categories are ordinal (sorting categories makes sense) or not.

__contains__(value)#
class sklearn_pmml_model.datatypes.Category(base_type, categories, ordered=False)#

Class describing a categorical data type.

Parameters:
base_typecallable

The original native data type of the category. For example, str, int or float.

categorieslist

List of all categories for a particular feature.

orderedbool

Boolean indicating whether the categories are ordinal (sorting categories makes sense) or not.

__eq__(other)#

Return self==value.

__contains__(item)#
__call__(value)#