Source code for dice_ml.constants

"""Constants for dice-ml package."""


[docs]class BackEndTypes: Sklearn = 'sklearn' Tensorflow1 = 'TF1' Tensorflow2 = 'TF2' Pytorch = 'PYT' ALL = [Sklearn, Tensorflow1, Tensorflow2, Pytorch]
[docs]class SamplingStrategy: Random = 'random' Genetic = 'genetic' KdTree = 'kdtree' Gradient = 'gradient'
[docs]class ModelTypes: Classifier = 'classifier' Regressor = 'regressor' ALL = [Classifier, Regressor]
class _SchemaVersions: V1 = '1.0' V2 = '2.0' CURRENT_VERSION = V2 ALL_VERSIONS = [V1, V2] class _PostHocSparsityTypes: LINEAR = 'linear' BINARY = 'binary' ALL = [LINEAR, BINARY]