# evidently.tests

Available tests for TestSuite reports. Tests grouped into modules. For detailed information see module documentation.

## Submodules

## base\_test module <a href="#module-evidently.tests.base_test" id="module-evidently.tests.base_test"></a>

### class BaseCheckValueTest(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseConditionsTest`

Base class for all tests with checking a value condition

#### Attributes:

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **abstract calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **check()**

&#x20;    **get\_condition()**

&#x20;    **abstract get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **groups()**

### class BaseConditionsTest(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `Test`, `ABC`

Base class for all tests with a condition

#### Attributes:

&#x20;    **condition : TestValueCondition**

### class GroupData(id: str, title: str, description: str, sort\_index: int = 0, severity: Optional\[str] = None)

Bases: `object`

#### Attributes:

&#x20;    **description : str**

&#x20;    **id : str**

&#x20;    **severity : Optional\[str] = None**

&#x20;    **sort\_index : int = 0**

&#x20;    **title : str**

### class GroupTypeData(id: str, title: str, values: List\[evidently.tests.base\_test.GroupData] = )

Bases: `object`

#### Attributes:

&#x20;    **id : str**

&#x20;    **title : str**

&#x20;    **values : List\[GroupData]**

#### Methods:

&#x20;    **add\_value(data: GroupData)**

### class GroupingTypes()

Bases: `object`

#### Attributes:

&#x20;    **ByClass = GroupTypeData(id='by\_class', title='By class', values=\[])**

&#x20;    **ByFeature = GroupTypeData(id='by\_feature', title='By feature', values=\[GroupData(id='no group', title='Dataset-level tests', description='Some tests cannot be grouped by feature', sort\_index=0, severity=None)])**

&#x20;    **TestGroup = GroupTypeData(id='test\_group', title='By test group', values=\[GroupData(id='no group', title='Ungrouped', description='Some tests don’t belong to any group under the selected condition', sort\_index=0, severity=None), GroupData(id='classification', title='Classification', description='', sort\_index=0, severity=None), GroupData(id='data\_drift', title='Data Drift', description='', sort\_index=0, severity=None), GroupData(id='data\_integrity', title='Data Integrity', description='', sort\_index=0, severity=None), GroupData(id='data\_quality', title='Data Quality', description='', sort\_index=0, severity=None), GroupData(id='regression', title='Regression', description='', sort\_index=0, severity=None)])**

&#x20;    **TestType = GroupTypeData(id='test\_type', title='By test type', values=\[])**

### class Test()

Bases: `object`

all fields in test class with type that is subclass of Metric would be used as dependencies of test.

#### Attributes:

&#x20;    **context = None**

&#x20;    **group : str**

&#x20;    **name : str**

#### Methods:

&#x20;    **abstract check()**

&#x20;    **get\_result()**

&#x20;    **set\_context(context)**

### class TestResult(name: str, description: str, status: str, groups: Dict\[str, str] = )

Bases: `object`

#### Attributes:

&#x20;    **ERROR = 'ERROR'**

&#x20;    **FAIL = 'FAIL'**

&#x20;    **SKIPPED = 'SKIPPED'**

&#x20;    **SUCCESS = 'SUCCESS'**

&#x20;    **WARNING = 'WARNING'**

&#x20;    **description : str**

&#x20;    **groups : Dict\[str, str]**

&#x20;    **name : str**

&#x20;    **status : str**

#### Methods:

&#x20;    **is\_passed()**

&#x20;    **mark\_as\_error(description: Optional\[str] = None)**

&#x20;    **mark\_as\_fail(description: Optional\[str] = None)**

&#x20;    **mark\_as\_success(description: Optional\[str] = None)**

&#x20;    **mark\_as\_warning(description: Optional\[str] = None)**

&#x20;    **set\_status(status: str, description: Optional\[str] = None)**

### class TestValueCondition(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `object`

Class for processing a value conditions - should it be less, greater than, equals and so on.

An object of the class stores specified conditions and can be used for checking a value by them.

#### Attributes:

&#x20;    **eq : Optional\[Union\[float, int]] = None**

&#x20;    **gt : Optional\[Union\[float, int]] = None**

&#x20;    **gte : Optional\[Union\[float, int]] = None**

&#x20;    **is\_in : Optional\[List\[Union\[float, int, str, bool]]] = None**

&#x20;    **lt : Optional\[Union\[float, int]] = None**

&#x20;    **lte : Optional\[Union\[float, int]] = None**

&#x20;    **not\_eq : Optional\[Union\[float, int]] = None**

&#x20;    **not\_in : Optional\[List\[Union\[float, int, str, bool]]] = None**

#### Methods:

&#x20;    **as\_dict()**

&#x20;    **check\_value(value: Union\[float, int])**

&#x20;    **has\_condition()**

Checks if we have a condition in the object and returns True in this case. If we have no conditions - returns False.

### generate\_column\_tests(test\_class: Type\[Test], columns: Optional\[Union\[str, list]] = None, parameters: Optional\[Dict] = None)

Function for generating tests for columns

## classification\_performance\_tests module <a href="#module-evidently.tests.classification_performance_tests" id="module-evidently.tests.classification_performance_tests"></a>

### class ByClassClassificationTest(label: str, probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **by\_class\_metric :** [**ClassificationQualityByClass**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.quality_by_class_metric.ClassificationQualityByClass)

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **group : str = 'classification'**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **abstract get\_value(result: dict)**

### class SimpleClassificationTest(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`

#### Attributes:

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **group : str = 'classification'**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **abstract get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class SimpleClassificationTestTopK(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTest`, `ABC`

#### Attributes:

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **probas\_threshold : Optional\[float]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

### class TestAccuracyScore(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTestTopK`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'Accuracy Score'**

&#x20;    **probas\_threshold : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestAccuracyScoreRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestAccuracyScore)**

&#x20;    **render\_json(obj: TestAccuracyScore)**

### class TestF1ByClass(label: str, probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `ByClassClassificationTest`

#### Attributes:

&#x20;    **name : str = 'F1 Score by Class'**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result: dict)**

### class TestF1ByClassRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestF1ByClass)**

&#x20;    **render\_json(obj: TestF1ByClass)**

### class TestF1Score(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTestTopK`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'F1 Score'**

&#x20;    **probas\_threshold : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestF1ScoreRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestF1Score)**

&#x20;    **render\_json(obj: TestF1Score)**

### class TestFNR(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTestTopK`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'False Negative Rate'**

&#x20;    **probas\_threshold : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestFNRRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestF1Score)**

&#x20;    **render\_json(obj: TestFNR)**

### class TestFPR(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTestTopK`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'False Positive Rate'**

&#x20;    **probas\_threshold : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestFPRRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestF1Score)**

&#x20;    **render\_json(obj: TestFPR)**

### class TestLogLoss(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'Logarithmic Loss'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestLogLossRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestLogLoss)**

&#x20;    **render\_json(obj: TestLogLoss)**

### class TestPrecisionByClass(label: str, probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `ByClassClassificationTest`

#### Attributes:

&#x20;    **name : str = 'Precision Score by Class'**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result: dict)**

### class TestPrecisionByClassRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestPrecisionByClass)**

&#x20;    **render\_json(obj: TestPrecisionByClass)**

### class TestPrecisionScore(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTestTopK`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'Precision Score'**

&#x20;    **probas\_threshold : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestPrecisionScoreRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestPrecisionScore)**

&#x20;    **render\_json(obj: TestPrecisionScore)**

### class TestRecallByClass(label: str, probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `ByClassClassificationTest`

#### Attributes:

&#x20;    **name : str = 'Recall Score by Class'**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result: dict)**

### class TestRecallByClassRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestRecallByClass)**

&#x20;    **render\_json(obj: TestRecallByClass)**

### class TestRecallScore(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTestTopK`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'Recall Score'**

&#x20;    **probas\_threshold : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestRecallScoreRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestRecallScore)**

&#x20;    **render\_json(obj: TestRecallScore)**

### class TestRocAuc(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTest`

#### Attributes:

&#x20;    **name : str = 'ROC AUC Score'**

&#x20;    **roc\_curve :** [**ClassificationRocCurve**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.roc_curve_metric.ClassificationRocCurve)

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestRocAucRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestRocAuc)**

&#x20;    **render\_json(obj: TestRocAuc)**

### class TestTNR(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTestTopK`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'True Negative Rate'**

&#x20;    **probas\_threshold : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestTNRRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestF1Score)**

&#x20;    **render\_json(obj: TestTNR)**

### class TestTPR(probas\_threshold: Optional\[float] = None, k: Optional\[Union\[float, int]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `SimpleClassificationTestTopK`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **conf\_matrix :** [**ClassificationConfusionMatrix**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.confusion_matrix_metric.ClassificationConfusionMatrix)

&#x20;    **dummy\_metric :** [**ClassificationDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_dummy_metric.ClassificationDummyMetric)

&#x20;    **k : Optional\[Union\[float, int]]**

&#x20;    **metric :** [**ClassificationQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.classification_performance#evidently.metrics.classification_performance.classification_quality_metric.ClassificationQualityMetric)

&#x20;    **name : str = 'True Positive Rate'**

&#x20;    **probas\_threshold : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **get\_value(result:** [**DatasetClassificationQuality**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations#evidently.calculations.classification_performance.DatasetClassificationQuality)**)**

### class TestTPRRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestF1Score)**

&#x20;    **render\_json(obj: TestTPR)**

## data\_drift\_tests module <a href="#module-evidently.tests.data_drift_tests" id="module-evidently.tests.data_drift_tests"></a>

### class BaseDataDriftMetricsTest(columns: Optional\[List\[str]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, cat\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, num\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, per\_column\_stattest: Optional\[Dict\[str, Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]]] = None, stattest\_threshold: Optional\[float] = None, cat\_stattest\_threshold: Optional\[float] = None, num\_stattest\_threshold: Optional\[float] = None, per\_column\_stattest\_threshold: Optional\[Dict\[str, float]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **group : str = 'data\_drift'**

&#x20;    **metric :** [**DataDriftTable**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_drift#evidently.metrics.data_drift.data_drift_table.DataDriftTable)

#### Methods:

&#x20;    **check()**

### class TestAllFeaturesValueDrift(columns: Optional\[List\[str]] = None, stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, cat\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, num\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, per\_column\_stattest: Optional\[Dict\[str, Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]]] = None, stattest\_threshold: Optional\[float] = None, cat\_stattest\_threshold: Optional\[float] = None, num\_stattest\_threshold: Optional\[float] = None, per\_column\_stattest\_threshold: Optional\[Dict\[str, float]] = None)

Bases: [`BaseGenerator`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.generators.BaseGenerator)

Create value drift tests for numeric and category features

#### Attributes:

&#x20;    **cat\_stattest : Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]],** [**StatTest**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)**]]**

&#x20;    **cat\_stattest\_threshold : Optional\[float]**

&#x20;    **columns : Optional\[List\[str]]**

&#x20;    **num\_stattest : Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]],** [**StatTest**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)**]]**

&#x20;    **num\_stattest\_threshold : Optional\[float]**

&#x20;    **per\_column\_stattest : Optional\[Dict\[str, Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]],** [**StatTest**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)**]]]**

&#x20;    **per\_column\_stattest\_threshold : Optional\[Dict\[str, float]]**

&#x20;    **stattest : Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]],** [**StatTest**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)**]]**

&#x20;    **stattest\_threshold : Optional\[float]**

#### Methods:

&#x20;    **generate(columns\_info:** [**DatasetColumns**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.data_operations.DatasetColumns)**)**

### class TestColumnDrift(column\_name: str, stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, stattest\_threshold: Optional\[float] = None)

Bases: `Test`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **group : str = 'data\_drift'**

&#x20;    **metric :** [**ColumnDriftMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_drift#evidently.metrics.data_drift.column_drift_metric.ColumnDriftMetric)

&#x20;    **name : str = 'Drift per Column'**

#### Methods:

&#x20;    **check()**

### class TestColumnDriftRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnDrift)**

&#x20;    **render\_json(obj: TestColumnDrift)**

### class TestCustomFeaturesValueDrift(features: List\[str], stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, cat\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, num\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, per\_column\_stattest: Optional\[Dict\[str, Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]]] = None, stattest\_threshold: Optional\[float] = None, cat\_stattest\_threshold: Optional\[float] = None, num\_stattest\_threshold: Optional\[float] = None, per\_column\_stattest\_threshold: Optional\[Dict\[str, float]] = None)

Bases: [`BaseGenerator`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.generators.BaseGenerator)

Create value drift tests for specified features

#### Attributes:

&#x20;    **cat\_stattest : Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]],** [**StatTest**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)**]] = None**

&#x20;    **cat\_stattest\_threshold : Optional\[float] = None**

&#x20;    **features : List\[str]**

&#x20;    **num\_stattest : Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]],** [**StatTest**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)**]] = None**

&#x20;    **num\_stattest\_threshold : Optional\[float] = None**

&#x20;    **per\_column\_stattest : Optional\[Dict\[str, Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]],** [**StatTest**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)**]]] = None**

&#x20;    **per\_column\_stattest\_threshold : Optional\[Dict\[str, float]] = None**

&#x20;    **stattest : Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]],** [**StatTest**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)**]] = None**

&#x20;    **stattest\_threshold : Optional\[float] = None**

#### Methods:

&#x20;    **generate(columns\_info:** [**DatasetColumns**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.data_operations.DatasetColumns)**)**

### class TestDataDriftResult(name: str, description: str, status: str, groups: Dict\[str, str] = , features: Dict\[str, Tuple\[str, float, float]] = )

Bases: `TestResult`

#### Attributes:

&#x20;    **features : Dict\[str, Tuple\[str, float, float]]**

### class TestNumberOfDriftedColumns(columns: Optional\[List\[str]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, cat\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, num\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, per\_column\_stattest: Optional\[Dict\[str, Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]]] = None, stattest\_threshold: Optional\[float] = None, cat\_stattest\_threshold: Optional\[float] = None, num\_stattest\_threshold: Optional\[float] = None, per\_column\_stattest\_threshold: Optional\[Dict\[str, float]] = None)

Bases: `BaseDataDriftMetricsTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DataDriftTable**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_drift#evidently.metrics.data_drift.data_drift_table.DataDriftTable)

&#x20;    **name : str = 'Number of Drifted Features'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfDriftedColumnsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfDriftedColumns)**

&#x20;    **render\_json(obj: TestNumberOfDriftedColumns)**

### class TestShareOfDriftedColumns(columns: Optional\[List\[str]] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, cat\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, num\_stattest: Optional\[Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]] = None, per\_column\_stattest: Optional\[Dict\[str, Union\[str, Callable\[\[Series, Series, str, float], Tuple\[float, bool]], [StatTest](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.calculations/evidently.calculations.stattests#evidently.calculations.stattests.registry.StatTest)]]] = None, stattest\_threshold: Optional\[float] = None, cat\_stattest\_threshold: Optional\[float] = None, num\_stattest\_threshold: Optional\[float] = None, per\_column\_stattest\_threshold: Optional\[Dict\[str, float]] = None)

Bases: `BaseDataDriftMetricsTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DataDriftTable**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_drift#evidently.metrics.data_drift.data_drift_table.DataDriftTable)

&#x20;    **name : str = 'Share of Drifted Columns'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestShareOfDriftedColumnsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestShareOfDriftedColumns)**

&#x20;    **render\_json(obj: TestShareOfDriftedColumns)**

## data\_integrity\_tests module <a href="#module-evidently.tests.data_integrity_tests" id="module-evidently.tests.data_integrity_tests"></a>

### class BaseIntegrityByColumnsConditionTest(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **data\_integrity\_metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **group : str = 'data\_integrity'**

#### Methods:

&#x20;    **groups()**

### class BaseIntegrityColumnMissingValuesTest(column\_name: str, missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **group : str = 'data\_integrity'**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

### class BaseIntegrityMissingValuesValuesTest(missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **group : str = 'data\_integrity'**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

### class BaseIntegrityOneColumnTest(column\_name: str)

Bases: `Test`, `ABC`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **group : str = 'data\_integrity'**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

#### Methods:

&#x20;    **groups()**

### class BaseIntegrityValueTest(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **group : str = 'data\_integrity'**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

### class BaseTestMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

Common class for tests of missing values. Some tests have the same details visualizations.

#### Attributes:

&#x20;    **MISSING\_VALUES\_NAMING\_MAPPING = {None: 'Pandas nulls (None, NAN, etc.)', '': '"" (empty string)', inf: 'Numpy "inf" value', -inf: 'Numpy "-inf" value'}**

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **get\_table\_with\_missing\_values\_and\_percents\_by\_column(info:** [**TestHtmlInfo**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestHtmlInfo)**, metric\_result:** [**DatasetMissingValuesMetricResult**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetricResult)**, name: str)**

Get a table with missing values number and percents

&#x20;    **get\_table\_with\_number\_of\_missing\_values\_by\_one\_missing\_value(info:** [**TestHtmlInfo**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestHtmlInfo)**, current\_missing\_values: dict, reference\_missing\_values: Optional\[dict], name: str)**

### class TestAllColumnsShareOfMissingValues(columns: Optional\[List\[str]] = None)

Bases: [`BaseGenerator`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.generators.BaseGenerator)

#### Attributes:

&#x20;    **columns : Optional\[List\[str]]**

#### Methods:

&#x20;    **generate(columns\_info:** [**DatasetColumns**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.data_operations.DatasetColumns)**)**

### class TestColumnAllConstantValues(column\_name: str)

Bases: `BaseIntegrityOneColumnTest`

Test that there is only one unique value in a column

#### Attributes:

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'All Constant Values in a Column'**

#### Methods:

&#x20;    **check()**

### class TestColumnAllConstantValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnAllConstantValues)**

### class TestColumnAllUniqueValues(column\_name: str)

Bases: `BaseIntegrityOneColumnTest`

Test that there is only uniques values in a column

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'All Unique Values in a Column'**

#### Methods:

&#x20;    **check()**

### class TestColumnAllUniqueValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnAllUniqueValues)**

### class TestColumnNumberOfDifferentMissingValues(column\_name: str, missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityColumnMissingValuesTest`

Check a number of differently encoded missing values in one column.

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'Different Types of Missing Values in a Column'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestColumnNumberOfDifferentMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnNumberOfDifferentMissingValues)**

Get a table with a missing value and number of the value in the dataset

&#x20;    **render\_json(obj: TestColumnNumberOfDifferentMissingValues)**

### class TestColumnNumberOfMissingValues(column\_name: str, missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityColumnMissingValuesTest`

Check a number of missing values in one column.

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'The Number of Missing Values in a Column'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestColumnNumberOfMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_json(obj: TestColumnNumberOfMissingValues)**

### class TestColumnRegExp(column\_name: str, reg\_exp: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **group : str = 'data\_integrity'**

&#x20;    **metric :** [**ColumnRegExpMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_regexp_metric.ColumnRegExpMetric)

&#x20;    **name : str = 'RegExp Match'**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **groups()**

### class TestColumnRegExpRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnRegExp)**

### class TestColumnShareOfMissingValues(column\_name: str, missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityColumnMissingValuesTest`

Check a share of missing values in one column.

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'The Share of Missing Values in a Column'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestColumnShareOfMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_json(obj: TestColumnShareOfMissingValues)**

### class TestColumnsType(columns\_type: Optional\[dict] = None)

Bases: `Test`

This test compares columns type against the specified ones or a reference dataframe

&#x20;    **class Result name: str, description: str, status: str, groups: Dict\[str, str] = , columns\_types: Dict\[str, Tuple\[str, str]] =**

Bases: `TestResult`

#### Attributes:

&#x20;    **columns\_types : Dict\[str, Tuple\[str, str]]**

&#x20;    **check()**

&#x20;    **columns\_type : Optional\[dict]**

&#x20;    **group : str = 'data\_integrity'**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

&#x20;    **name : str = 'Column Types'**

### class TestColumnsTypeRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnsType)**

&#x20;    **render\_json(obj: TestColumnsType)**

### class TestNumberOfColumns(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityValueTest`

Number of all columns in the data, including utility columns (id/index, datetime, target, predictions)

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

&#x20;    **name : str = 'Number of Columns'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfColumnsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfColumns)**

&#x20;    **render\_json(obj: TestNumberOfColumns)**

### class TestNumberOfColumnsWithMissingValues(missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityMissingValuesValuesTest`

Check a number of columns with a missing value.

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'The Number of Columns With Missing Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfColumnsWithMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfMissingValues)**

&#x20;    **render\_json(obj: TestNumberOfColumnsWithMissingValues)**

### class TestNumberOfConstantColumns(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityValueTest`

Number of columns contained only one unique value

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

&#x20;    **name : str = 'Number of Constant Columns'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfConstantColumnsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfConstantColumns)**

&#x20;    **render\_json(obj: TestNumberOfConstantColumns)**

### class TestNumberOfDifferentMissingValues(missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityMissingValuesValuesTest`

Check a number of different encoded missing values.

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'Different Types of Missing Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfDifferentMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfDifferentMissingValues)**

Get a table with a missing value and number of the value in the dataset

&#x20;    **render\_json(obj: TestNumberOfDifferentMissingValues)**

### class TestNumberOfDuplicatedColumns(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityValueTest`

How many columns have duplicates in the dataset

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

&#x20;    **name : str = 'Number of Duplicate Columns'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfDuplicatedColumnsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_json(obj: TestNumberOfDuplicatedColumns)**

### class TestNumberOfDuplicatedRows(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityValueTest`

How many rows have duplicates in the dataset

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

&#x20;    **name : str = 'Number of Duplicate Rows'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfDuplicatedRowsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_json(obj: TestNumberOfDuplicatedRows)**

### class TestNumberOfEmptyColumns(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityValueTest`

Number of columns contained all NAN values

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

&#x20;    **name : str = 'Number of Empty Columns'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfEmptyColumnsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfEmptyColumns)**

### class TestNumberOfEmptyRows(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityValueTest`

Number of rows contained all NAN values

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

&#x20;    **name : str = 'Number of Empty Rows'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfMissingValues(missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityMissingValuesValuesTest`

Check a number of missing values.

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'The Number of Missing Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfMissingValues)**

&#x20;    **render\_json(obj: TestNumberOfMissingValues)**

### class TestNumberOfRows(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityValueTest`

Number of rows in the data

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_summary_metric.DatasetSummaryMetric)

&#x20;    **name : str = 'Number of Rows'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfRowsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_json(obj: TestNumberOfRows)**

### class TestNumberOfRowsWithMissingValues(missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityMissingValuesValuesTest`

Check a number of rows with a missing value.

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'The Number Of Rows With Missing Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfRowsWithMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_json(obj: TestNumberOfRowsWithMissingValues)**

### class TestShareOfColumnsWithMissingValues(missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityMissingValuesValuesTest`

Check a share of columns with a missing value.

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'The Share of Columns With Missing Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestShareOfColumnsWithMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfMissingValues)**

&#x20;    **render\_json(obj: TestShareOfColumnsWithMissingValues)**

### class TestShareOfMissingValues(missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityMissingValuesValuesTest`

Check a share of missing values.

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'Share of Missing Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestShareOfMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfMissingValues)**

&#x20;    **render\_json(obj: TestShareOfMissingValues)**

### class TestShareOfRowsWithMissingValues(missing\_values: Optional\[list] = None, replace: bool = True, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseIntegrityMissingValuesValuesTest`

Check a share of rows with a missing value.

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**DatasetMissingValuesMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.dataset_missing_values_metric.DatasetMissingValuesMetric)

&#x20;    **name : str = 'The Share of Rows With Missing Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestShareOfRowsWithMissingValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: `BaseTestMissingValuesRenderer`

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_json(obj: TestShareOfRowsWithMissingValues)**

## data\_quality\_tests module <a href="#module-evidently.tests.data_quality_tests" id="module-evidently.tests.data_quality_tests"></a>

### class BaseDataQualityCorrelationsMetricsValueTest(method: str = 'pearson', eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **group : str = 'data\_quality'**

&#x20;    **method : str**

&#x20;    **metric :** [**DatasetCorrelationsMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.dataset_correlations_metric.DatasetCorrelationsMetric)

### class BaseDataQualityMetricsValueTest(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **group : str = 'data\_quality'**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

### class BaseDataQualityValueListMetricsTest(column\_name: str, values: Optional\[list] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **group : str = 'data\_quality'**

&#x20;    **metric :** [**ColumnValueListMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_value_list_metric.ColumnValueListMetric)

&#x20;    **values : Optional\[list]**

#### Methods:

&#x20;    **groups()**

### class BaseDataQualityValueRangeMetricsTest(column\_name: str, left: Optional\[float] = None, right: Optional\[float] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **column : str**

&#x20;    **group : str = 'data\_quality'**

&#x20;    **left : Optional\[float]**

&#x20;    **metric :** [**ColumnValueRangeMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_value_range_metric.ColumnValueRangeMetric)

&#x20;    **right : Optional\[float]**

#### Methods:

&#x20;    **groups()**

### class BaseFeatureDataQualityMetricsTest(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityMetricsValueTest`, `ABC`

#### Attributes:

&#x20;    **column\_name : str**

#### Methods:

&#x20;    **check()**

&#x20;    **groups()**

### class TestAllColumnsMostCommonValueShare(columns: Optional\[List\[str]] = None)

Bases: [`BaseGenerator`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.generators.BaseGenerator)

Creates most common value share tests for each column in the dataset

#### Attributes:

&#x20;    **columns : Optional\[List\[str]]**

#### Methods:

&#x20;    **generate(columns\_info:** [**DatasetColumns**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.data_operations.DatasetColumns)**)**

### class TestCatColumnsOutOfListValues(columns: Optional\[List\[str]] = None)

Bases: [`BaseGenerator`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.generators.BaseGenerator)

Create share of out of list values tests for category columns

#### Attributes:

&#x20;    **columns : Optional\[List\[str]]**

#### Methods:

&#x20;    **generate(columns\_info:** [**DatasetColumns**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.data_operations.DatasetColumns)**)**

### class TestColumnQuantile(column\_name: str, quantile: float, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **group : str = 'data\_quality'**

&#x20;    **metric :** [**ColumnQuantileMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_quantile_metric.ColumnQuantileMetric)

&#x20;    **name : str = 'Quantile Value'**

&#x20;    **quantile : float**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

&#x20;    **groups()**

### class TestColumnQuantileRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnQuantile)**

### class TestColumnValueMax(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseFeatureDataQualityMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'Max Value'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestColumnValueMaxRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnValueMax)**

### class TestColumnValueMean(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseFeatureDataQualityMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'Mean Value'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestColumnValueMeanRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnValueMean)**

### class TestColumnValueMedian(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseFeatureDataQualityMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'Median Value'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestColumnValueMedianRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnValueMedian)**

### class TestColumnValueMin(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseFeatureDataQualityMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'Min Value'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestColumnValueMinRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnValueMin)**

### class TestColumnValueStd(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseFeatureDataQualityMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'Standard Deviation (SD)'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestColumnValueStdRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestColumnValueStd)**

### class TestConflictPrediction()

Bases: `Test`

#### Attributes:

&#x20;    **group : str = 'data\_quality'**

&#x20;    **metric : ConflictPredictionMetric**

&#x20;    **name : str = 'Test number of conflicts in prediction'**

#### Methods:

&#x20;    **check()**

### class TestConflictTarget()

Bases: `Test`

#### Attributes:

&#x20;    **group : str = 'data\_quality'**

&#x20;    **metric : ConflictTargetMetric**

&#x20;    **name : str = 'Test number of conflicts in target'**

#### Methods:

&#x20;    **check()**

### class TestCorrelationChanges(corr\_diff: float = 0.25, method: str = 'pearson', eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityCorrelationsMetricsValueTest`

#### Attributes:

&#x20;    **corr\_diff : float**

&#x20;    **group : str = 'data\_quality'**

&#x20;    **metric :** [**DatasetCorrelationsMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.dataset_correlations_metric.DatasetCorrelationsMetric)

&#x20;    **name : str = 'Change in Correlation'**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestCorrelationChangesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestCorrelationChanges)**

### class TestHighlyCorrelatedColumns(method: str = 'pearson', eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityCorrelationsMetricsValueTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **method : str**

&#x20;    **metric :** [**DatasetCorrelationsMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.dataset_correlations_metric.DatasetCorrelationsMetric)

&#x20;    **name : str = 'Highly Correlated Columns'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestHighlyCorrelatedColumnsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestHighlyCorrelatedColumns)**

&#x20;    **render\_json(obj: TestHighlyCorrelatedColumns)**

### class TestMeanInNSigmas(column\_name: str, n\_sigmas: int = 2)

Bases: `Test`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **group : str = 'data\_quality'**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **n\_sigmas : int**

&#x20;    **name : str = 'Mean Value Stability'**

#### Methods:

&#x20;    **check()**

### class TestMeanInNSigmasRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestMeanInNSigmas)**

&#x20;    **render\_json(obj: TestMeanInNSigmas)**

### class TestMostCommonValueShare(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseFeatureDataQualityMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'Share of the Most Common Value'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestMostCommonValueShareRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestMostCommonValueShare)**

&#x20;    **render\_json(obj: TestMostCommonValueShare)**

### class TestNumColumnsMeanInNSigmas(columns: Optional\[List\[str]] = None)

Bases: [`BaseGenerator`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.generators.BaseGenerator)

Create tests of mean for all numeric columns

#### Attributes:

&#x20;    **columns : Optional\[List\[str]]**

#### Methods:

&#x20;    **generate(columns\_info:** [**DatasetColumns**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.data_operations.DatasetColumns)**)**

### class TestNumColumnsOutOfRangeValues(columns: Optional\[List\[str]] = None)

Bases: [`BaseGenerator`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.generators.BaseGenerator)

Creates share of out of range values tests for all numeric columns

#### Attributes:

&#x20;    **columns : Optional\[List\[str]]**

#### Methods:

&#x20;    **generate(columns\_info:** [**DatasetColumns**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.utils#evidently.utils.data_operations.DatasetColumns)**)**

### class TestNumberOfOutListValues(column\_name: str, values: Optional\[list] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityValueListMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnValueListMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_value_list_metric.ColumnValueListMetric)

&#x20;    **name : str = 'Number Out-of-List Values'**

&#x20;    **value : Union\[float, int]**

&#x20;    **values : Optional\[list]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfOutListValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfOutListValues)**

### class TestNumberOfOutRangeValues(column\_name: str, left: Optional\[float] = None, right: Optional\[float] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityValueRangeMetricsTest`

#### Attributes:

&#x20;    **column : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **left : Optional\[float]**

&#x20;    **metric :** [**ColumnValueRangeMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_value_range_metric.ColumnValueRangeMetric)

&#x20;    **name : str = 'Number of Out-of-Range Values '**

&#x20;    **right : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfOutRangeValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfOutRangeValues)**

### class TestNumberOfUniqueValues(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseFeatureDataQualityMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'Number of Unique Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestNumberOfUniqueValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestNumberOfUniqueValues)**

### class TestPredictionFeaturesCorrelations(method: str = 'pearson', eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityCorrelationsMetricsValueTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **method : str**

&#x20;    **metric :** [**DatasetCorrelationsMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.dataset_correlations_metric.DatasetCorrelationsMetric)

&#x20;    **name : str = 'Correlation between Prediction and Features'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestPredictionFeaturesCorrelationsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestTargetFeaturesCorrelations)**

&#x20;    **render\_json(obj: TestPredictionFeaturesCorrelations)**

### class TestShareOfOutListValues(column\_name: str, values: Optional\[list] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityValueListMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnValueListMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_value_list_metric.ColumnValueListMetric)

&#x20;    **name : str = 'Share of Out-of-List Values'**

&#x20;    **value : Union\[float, int]**

&#x20;    **values : Optional\[list]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestShareOfOutListValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestShareOfOutListValues)**

&#x20;    **render\_json(obj: TestShareOfOutListValues)**

### class TestShareOfOutRangeValues(column\_name: str, left: Optional\[float] = None, right: Optional\[float] = None, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityValueRangeMetricsTest`

#### Attributes:

&#x20;    **column : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **left : Optional\[float]**

&#x20;    **metric :** [**ColumnValueRangeMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_value_range_metric.ColumnValueRangeMetric)

&#x20;    **name : str = 'Share of Out-of-Range Values'**

&#x20;    **right : Optional\[float]**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestShareOfOutRangeValuesRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestShareOfOutRangeValues)**

&#x20;    **render\_json(obj: TestShareOfOutRangeValues)**

### class TestTargetFeaturesCorrelations(method: str = 'pearson', eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityCorrelationsMetricsValueTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **method : str**

&#x20;    **metric :** [**DatasetCorrelationsMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.dataset_correlations_metric.DatasetCorrelationsMetric)

&#x20;    **name : str = 'Correlation between Target and Features'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestTargetFeaturesCorrelationsRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestTargetFeaturesCorrelations)**

&#x20;    **render\_json(obj: TestTargetFeaturesCorrelations)**

### class TestTargetPredictionCorrelation(method: str = 'pearson', eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseDataQualityCorrelationsMetricsValueTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **method : str**

&#x20;    **metric :** [**DatasetCorrelationsMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.dataset_correlations_metric.DatasetCorrelationsMetric)

&#x20;    **name : str = 'Correlation between Target and Prediction'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestUniqueValuesShare(column\_name: str, eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseFeatureDataQualityMetricsTest`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **condition : TestValueCondition**

&#x20;    **metric :** [**ColumnSummaryMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_integrity#evidently.metrics.data_integrity.column_summary_metric.ColumnSummaryMetric)

&#x20;    **name : str = 'Share of Unique Values'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestUniqueValuesShareRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestUniqueValuesShare)**

### class TestValueList(column\_name: str, values: Optional\[list] = None)

Bases: `Test`

#### Attributes:

&#x20;    **column\_name : str**

&#x20;    **group : str = 'data\_quality'**

&#x20;    **metric :** [**ColumnValueListMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_value_list_metric.ColumnValueListMetric)

&#x20;    **name : str = 'Out-of-List Values'**

&#x20;    **values : Optional\[list]**

#### Methods:

&#x20;    **check()**

### class TestValueListRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestValueList)**

&#x20;    **render\_json(obj: TestValueList)**

### class TestValueRange(column\_name: str, left: Optional\[float] = None, right: Optional\[float] = None)

Bases: `Test`

#### Attributes:

&#x20;    **column : str**

&#x20;    **group : str = 'data\_quality'**

&#x20;    **left : Optional\[float]**

&#x20;    **metric :** [**ColumnValueRangeMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.data_quality#evidently.metrics.data_quality.column_value_range_metric.ColumnValueRangeMetric)

&#x20;    **name : str = 'Value Range'**

&#x20;    **right : Optional\[float]**

#### Methods:

&#x20;    **check()**

### class TestValueRangeRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestValueRange)**

## regression\_performance\_tests module <a href="#module-evidently.tests.regression_performance_tests" id="module-evidently.tests.regression_performance_tests"></a>

### class BaseRegressionPerformanceMetricsTest(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseCheckValueTest`, `ABC`

#### Attributes:

&#x20;    **dummy\_metric :** [**RegressionDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_dummy_metric.RegressionDummyMetric)

&#x20;    **group : str = 'regression'**

&#x20;    **metric :** [**RegressionQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_quality.RegressionQualityMetric)

### class TestValueAbsMaxError(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseRegressionPerformanceMetricsTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **dummy\_metric :** [**RegressionDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_dummy_metric.RegressionDummyMetric)

&#x20;    **metric :** [**RegressionQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_quality.RegressionQualityMetric)

&#x20;    **name : str = 'Max Absolute Error'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestValueAbsMaxErrorRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestValueAbsMaxError)**

&#x20;    **render\_json(obj: TestValueAbsMaxError)**

### class TestValueMAE(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseRegressionPerformanceMetricsTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **dummy\_metric :** [**RegressionDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_dummy_metric.RegressionDummyMetric)

&#x20;    **metric :** [**RegressionQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_quality.RegressionQualityMetric)

&#x20;    **name : str = 'Mean Absolute Error (MAE)'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestValueMAERenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestValueMAE)**

&#x20;    **render\_json(obj: TestValueMAE)**

### class TestValueMAPE(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseRegressionPerformanceMetricsTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **dummy\_metric :** [**RegressionDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_dummy_metric.RegressionDummyMetric)

&#x20;    **metric :** [**RegressionQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_quality.RegressionQualityMetric)

&#x20;    **name : str = 'Mean Absolute Percentage Error (MAPE)'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestValueMAPERenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestValueMAPE)**

&#x20;    **render\_json(obj: TestValueMAPE)**

### class TestValueMeanError(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseRegressionPerformanceMetricsTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **dummy\_metric :** [**RegressionDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_dummy_metric.RegressionDummyMetric)

&#x20;    **metric :** [**RegressionQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_quality.RegressionQualityMetric)

&#x20;    **name : str = 'Mean Error (ME)'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestValueMeanErrorRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestValueMeanError)**

&#x20;    **render\_json(obj: TestValueMeanError)**

### class TestValueR2Score(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseRegressionPerformanceMetricsTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **dummy\_metric :** [**RegressionDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_dummy_metric.RegressionDummyMetric)

&#x20;    **metric :** [**RegressionQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_quality.RegressionQualityMetric)

&#x20;    **name : str = 'R2 Score'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestValueR2ScoreRenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestValueR2Score)**

&#x20;    **render\_json(obj: TestValueAbsMaxError)**

### class TestValueRMSE(eq: Optional\[Union\[float, int]] = None, gt: Optional\[Union\[float, int]] = None, gte: Optional\[Union\[float, int]] = None, is\_in: Optional\[List\[Union\[float, int, str, bool]]] = None, lt: Optional\[Union\[float, int]] = None, lte: Optional\[Union\[float, int]] = None, not\_eq: Optional\[Union\[float, int]] = None, not\_in: Optional\[List\[Union\[float, int, str, bool]]] = None)

Bases: `BaseRegressionPerformanceMetricsTest`

#### Attributes:

&#x20;    **condition : TestValueCondition**

&#x20;    **dummy\_metric :** [**RegressionDummyMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_dummy_metric.RegressionDummyMetric)

&#x20;    **metric :** [**RegressionQualityMetric**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.metrics/evidently.metrics.regression_performance#evidently.metrics.regression_performance.regression_quality.RegressionQualityMetric)

&#x20;    **name : str = 'Root Mean Square Error (RMSE)'**

&#x20;    **value : Union\[float, int]**

#### Methods:

&#x20;    **calculate\_value\_for\_test()**

Method for getting the checking value. Define it in a child class

&#x20;    **get\_condition()**

&#x20;    **get\_description(value: Union\[float, int])**

Method for getting a description that we can use. The description can use the checked value. Define it in a child class

### class TestValueRMSERenderer(color\_options: Optional\[[ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)] = None)

Bases: [`TestRenderer`](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.renderers#evidently.renderers.base_renderer.TestRenderer)

#### Attributes:

&#x20;    **color\_options :** [**ColorOptions**](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions)

#### Methods:

&#x20;    **render\_html(obj: TestValueRMSE)**

&#x20;    **render\_json(obj: TestValueRMSE)**

## utils module <a href="#module-evidently.tests.utils" id="module-evidently.tests.utils"></a>

### approx(value, relative=None, absolute=None)

Get approximate value for checking a value is equal to other within some tolerance

### dataframes\_to\_table(current: DataFrame, reference: Optional\[DataFrame], columns: List\[str], table\_id: str, sort\_by: str = 'curr', na\_position: str = 'first', asc: bool = False)

### plot\_boxes(\*, curr\_for\_plots: dict, ref\_for\_plots: Optional\[dict], color\_options: [ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions))

### plot\_check(fig, condition, color\_options: [ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions))

### plot\_conf\_mtrx(curr\_mtrx, ref\_mtrx)

### plot\_correlations(current\_correlations, reference\_correlations)

### plot\_dicts\_to\_table(dict\_curr: dict, dict\_ref: Optional\[dict], columns: list, id\_prfx: str, sort\_by: str = 'curr', asc: bool = False)

### plot\_metric\_value(fig, metric\_val: float, metric\_name: str)

### plot\_rates(\*, curr\_rate\_plots\_data: dict, ref\_rate\_plots\_data: Optional\[dict] = None, color\_options: [ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions))

### plot\_roc\_auc(\*, curr\_roc\_curve: dict, ref\_roc\_curve: Optional\[dict], color\_options: [ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions))

### plot\_value\_counts\_tables(feature\_name, values, curr\_df, ref\_df, id\_prfx)

### plot\_value\_counts\_tables\_ref\_curr(feature\_name, curr\_df, ref\_df, id\_prfx)

### regression\_perf\_plot(\*, val\_for\_plot: Dict\[str, Series], hist\_for\_plot: Dict\[str, Series], name: str, curr\_metric: float, ref\_metric: Optional\[float] = None, is\_ref\_data: bool = False, color\_options: [ColorOptions](https://francesco.gitbook.io/docs.evidentlyai.com/reference/evidently.options#evidently.options.color_scheme.ColorOptions))
