CategoryMismatchTrainTest#

class CategoryMismatchTrainTest[source]#

Find new categories in the test set.

__init__(*args, **kwargs)[source]#
__new__(*args, **kwargs)#

Methods

CategoryMismatchTrainTest.add_condition(...)

Add new condition function to the check.

CategoryMismatchTrainTest.add_condition_new_categories_less_or_equal([...])

Add condition - require column's number of different new categories to be less or equal to threshold.

CategoryMismatchTrainTest.add_condition_new_category_ratio_less_or_equal([...])

Add condition - require column's ratio of instances with new categories to be less or equal to threshold.

CategoryMismatchTrainTest.clean_conditions()

Remove all conditions from this check instance.

CategoryMismatchTrainTest.conditions_decision(result)

Run conditions on given result.

CategoryMismatchTrainTest.config([...])

Return check configuration (conditions' configuration not yet supported).

CategoryMismatchTrainTest.feature_reduce(...)

Return an aggregated drift score based on aggregation method defined.

CategoryMismatchTrainTest.from_config(conf)

Return check object from a CheckConfig object.

CategoryMismatchTrainTest.from_json(conf[, ...])

Deserialize check instance from JSON string.

CategoryMismatchTrainTest.greater_is_better()

Return True if the check reduce_output is better when it is greater.

CategoryMismatchTrainTest.metadata([...])

Return check metadata.

CategoryMismatchTrainTest.name()

Name of class in split camel case.

CategoryMismatchTrainTest.params([show_defaults])

Return parameters to show when printing the check.

CategoryMismatchTrainTest.reduce_output(...)

Return an aggregated drift score based on aggregation method defined.

CategoryMismatchTrainTest.remove_condition(index)

Remove given condition by index.

CategoryMismatchTrainTest.run(train_dataset, ...)

Run check.

CategoryMismatchTrainTest.run_logic(context)

Run check.

CategoryMismatchTrainTest.to_json([indent, ...])

Serialize check instance to JSON string.