DateTrainTestLeakageDuplicates#

class DateTrainTestLeakageDuplicates[source]#

Check if test dates are present in train data.

Parameters
n_to_showint , default: 5

Number of common dates to show.

__init__(n_to_show: int = 5, **kwargs)[source]#
__new__(*args, **kwargs)#

Methods

DateTrainTestLeakageDuplicates.add_condition(...)

Add new condition function to the check.

DateTrainTestLeakageDuplicates.add_condition_leakage_ratio_not_greater_than([...])

Add condition - require leakage ratio to not surpass max_ratio.

DateTrainTestLeakageDuplicates.clean_conditions()

Remove all conditions from this check instance.

DateTrainTestLeakageDuplicates.conditions_decision(result)

Run conditions on given result.

DateTrainTestLeakageDuplicates.finalize_check_result(...)

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

DateTrainTestLeakageDuplicates.metadata([...])

Return check metadata.

DateTrainTestLeakageDuplicates.name()

Name of class in split camel case.

DateTrainTestLeakageDuplicates.params([...])

Return parameters to show when printing the check.

DateTrainTestLeakageDuplicates.remove_condition(index)

Remove given condition by index.

DateTrainTestLeakageDuplicates.run(...[, model])

Run check.

DateTrainTestLeakageDuplicates.run_logic(context)

Run check.

Examples#