NewLabelTrainTest#

class NewLabelTrainTest[source]#

Find new labels in test.

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

Methods

NewLabelTrainTest.add_condition(name, ...)

Add new condition function to the check.

NewLabelTrainTest.add_condition_new_label_ratio_less_or_equal([...])

Add condition - require label column's ratio of new label samples to be less or equal to the threshold.

NewLabelTrainTest.add_condition_new_labels_number_less_or_equal([...])

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

NewLabelTrainTest.clean_conditions()

Remove all conditions from this check instance.

NewLabelTrainTest.conditions_decision(result)

Run conditions on given result.

NewLabelTrainTest.config()

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

NewLabelTrainTest.from_config(conf)

Return check object from a CheckConfig object.

NewLabelTrainTest.metadata([with_doc_link])

Return check metadata.

NewLabelTrainTest.name()

Name of class in split camel case.

NewLabelTrainTest.params([show_defaults])

Return parameters to show when printing the check.

NewLabelTrainTest.reduce_output(check_result)

Reduce check result value.

NewLabelTrainTest.remove_condition(index)

Remove given condition by index.

NewLabelTrainTest.run(train_dataset, ...[, ...])

Run check.

NewLabelTrainTest.run_logic(context)

Run check.

Examples#