DateTrainTestLeakageOverlap#

class DateTrainTestLeakageOverlap[source]#

Check test data that is dated earlier than the latest date in train.

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

Methods

DateTrainTestLeakageOverlap.add_condition(...)

Add new condition function to the check.

DateTrainTestLeakageOverlap.add_condition_leakage_ratio_less_or_equal([...])

Add condition - require leakage ratio be less or equal to the threshold.

DateTrainTestLeakageOverlap.clean_conditions()

Remove all conditions from this check instance.

DateTrainTestLeakageOverlap.conditions_decision(result)

Run conditions on given result.

DateTrainTestLeakageOverlap.config()

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

DateTrainTestLeakageOverlap.from_config(conf)

Return check object from a CheckConfig object.

DateTrainTestLeakageOverlap.metadata([...])

Return check metadata.

DateTrainTestLeakageOverlap.name()

Name of class in split camel case.

DateTrainTestLeakageOverlap.params([...])

Return parameters to show when printing the check.

DateTrainTestLeakageOverlap.remove_condition(index)

Remove given condition by index.

DateTrainTestLeakageOverlap.run(...[, ...])

Run check.

DateTrainTestLeakageOverlap.run_logic(context)

Run check.

Examples#