mlm_insights.constants package

Submodules

mlm_insights.constants.definitions module

mlm_insights.constants.types module

class mlm_insights.constants.types.ColumnType(value)

Bases: ExtendedEnum

An enumeration.

ID = 5
INPUT = 1
PREDICTION = 2
PREDICTION_SCORE = 4
TARGET = 3
class mlm_insights.constants.types.DataType(value)

Bases: ExtendedEnum

An enumeration.

BOOLEAN = DataType(bool)
DATETIME = DataType(string)
FLOAT = DataType(double)
INTEGER = DataType(int64)
OBJECT = DataType(string)
STRING = DataType(string)
TEXT = DataType(string)
TIMESTAMP = DataType(double)
class mlm_insights.constants.types.ExecutionEngineType(value)

Bases: ExtendedEnum

An enumeration.

DASK = 'dask'
NATIVE = 'native'
SPARK = 'spark'
classmethod has_value(value: str) bool
class mlm_insights.constants.types.ExtendedEnum(value)

Bases: Enum

An enumeration.

classmethod list() List[str]
class mlm_insights.constants.types.FeatureType(data_type: mlm_insights.constants.types.DataType, variable_type: mlm_insights.constants.types.VariableType, column_type: mlm_insights.constants.types.ColumnType = <ColumnType.INPUT: 1>, config: Dict[str, Any] = <factory>)

Bases: object

column_type: ColumnType = 1

Optional configuration in key value pairs which applies for a particular feature Key must be of type string and values can be one of : number, string and boolean

config: Dict[str, Any]
data_type: DataType
variable_type: VariableType
class mlm_insights.constants.types.PandasDataType(value)

Bases: ExtendedEnum

An enumeration.

BOOLEAN = BooleanDtype
DATETIME = string[python]
FLOAT = Float64Dtype()
INTEGER = Int64Dtype()
OBJECT = string[python]
STRING = string[python]
TEXT = string[python]
TIMESTAMP = Float64Dtype()
class mlm_insights.constants.types.ThresholdValueSource(value)

Bases: Enum

An enumeration.

REFERENCE_PROFILE = 1
USER_PROVIDED = 0
class mlm_insights.constants.types.VariableType(value)

Bases: ExtendedEnum

An enumeration.

BINARY = 5
CONTINUOUS = 1
DATETIME = 9
DISCRETE = 2
NOMINAL = 3
OBJECT = 7
ORDINAL = 4
TEXT = 6
mlm_insights.constants.types.to_native_type(data_type: DataType) Any