powered by
This function audits a dataset for potential data leakage, running a series of predefined detectors and generating a comprehensive report with detailed findings.
leakr_audit( data, target = NULL, split = NULL, id = NULL, detectors = NULL, config = list() )
A leakr_report object containing the audit results, including summary, evidence, and metadata.
leakr_report
The dataset to be audited (data frame or tibble).
The target variable (optional). If NULL, no target variable is assumed.
The split variable used for training/test split (optional). If NULL, no split is assumed.
The unique identifier for each row (optional). If NULL, no id is used.
A vector of detector names to run (optional). If NULL, all available detectors will be used.
A list of configuration parameters for the audit. Defaults to an empty list.
# \donttest{ # Basic audit on iris dataset report <- leakr_audit(iris, target = "Species") print(report) # }
Run the code above in your browser using DataLab