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_not_greater_than([...])

Add condition - require label column not to have greater than given number of ratio new label samples.

NewLabelTrainTest.add_condition_new_labels_not_greater_than([...])

Add condition - require label column not to have greater than given number of different new labels.

NewLabelTrainTest.clean_conditions()

Remove all conditions from this check instance.

NewLabelTrainTest.conditions_decision(result)

Run conditions on given result.

NewLabelTrainTest.finalize_check_result(...)

Finalize the check result by adding the check instance and processing the conditions.

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.remove_condition(index)

Remove given condition by index.

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

Run check.

NewLabelTrainTest.run_logic(context)

Run check.

Examples#