Package: leakr 0.1.0

leakr: Data Leakage Detection Tools for Machine Learning

Provides utilities to detect common data leakage patterns including train/test contamination, temporal leakage, and data duplication, enhancing model reliability and reproducibility in machine learning workflows. Generates diagnostic reports and visual summaries to support data validation. Methods based on best practices from Hastie, Tibshirani, and Friedman (2009, ISBN:978-0387848570).

Authors:Cheryl Isabella Lim [aut, cre]

leakr_0.1.0.tar.gz
leakr_0.1.0.zip(r-4.7-any)leakr_0.1.0.zip(r-4.6-any)leakr_0.1.0.zip(r-4.5-any)
leakr_0.1.0.tgz(r-4.6-any)leakr_0.1.0.tgz(r-4.5-any)
leakr_0.1.0.tar.gz(r-4.7-any)leakr_0.1.0.tar.gz(r-4.6-any)
leakr_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
leakr/json (API)

# Install 'leakr' in R:
install.packages('leakr', repos = c('https://cherylisabella.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cherylisabella/leakr/issues

On CRAN:

Conda:

data-sciencemachine-learningml

4.78 score 1 stars 9 scripts 244 downloads 27 exports 83 dependencies

Last updated from:51d111855c. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develNOTE176
source / vignettesOK214
linux-releaseNOTE145
macos-releaseNOTE224
macos-oldrelNOTE186
windows-develNOTE92
windows-releaseNOTE70
windows-oldrelNOTE96
wasm-releaseOK120

Exports:%||%compile_reportformat_detector_namegenerate_diagnostic_plotsgenerate_recommendationsget_detector_infoleakr_auditleakr_create_snapshotleakr_export_dataleakr_from_caretleakr_from_mlr3leakr_from_tidymodelsleakr_importleakr_list_snapshotsleakr_load_snapshotleakr_plotleakr_quick_importleakr_summariselist_registered_detectorsnew_temporal_detectornew_train_test_detectorprepare_audit_dataregister_detectorrun_detectorrun_detectorsstratified_samplevalidate_and_preprocess_data

Dependencies:arrowassertthatbase64encbitbit64cellrangerclasscliclockcodetoolscpp11crayondata.tablediagramdigestdplyrfarverfastmapfuturefuture.applygenericsggplot2globalsgluegowergtablehardhathmshtmltoolsipredisobandjsonliteKernSmoothlabelinglatticelavalifecyclelistenvlubridatemagrittrMASSMatrixmodelenvnnetnumDerivopenxlsxparallellyparsnippillarpkgconfigprettyunitsprodlimprogressprogressrpurrrR6RColorBrewerRcppreadxlrecipesrematchrlangrpartS7scalesshapesparsevctrsSQUAREMstringistringrsurvivaltibbletidyrtidyselecttimechangetimeDatetzdbutf8vctrsviridisLitewithrworkflowszip

Advanced Leakage Detection with leakr
Introduction | Understanding leakr's Detection Capabilities | Advanced Target Leakage Scenarios | Medical Diagnosis Example | Financial Data with Temporal Issues | Advanced Duplication Detection | Near-Duplicate Detection in Customer Data | Configuration and Customisation | Custom Configuration Options | Working with Large Datasets | Stratified Sampling for Balanced Analysis | Advanced Reporting and Analysis | Detailed Report Analysis | Best Practices for Advanced Usage | 1. Multi-Stage Validation | 2. Domain-Specific Validation | Summary

Last update: 2025-10-28
Started: 2025-10-28

Framework Integration with leakr
Introduction | Integration with caret | Basic caret Integration | Advanced caret Integration with Preprocessing | Integration with mlr3 | Basic mlr3 Integration | Advanced mlr3 Integration with Pipelines | Integration with tidymodels | Basic tidymodels Integration | Advanced tidymodels Integration with Feature Engineering | Data Import and Export Integration | Import with Automatic Auditing | Export with Audit Reports | Snapshot and Version Control Integration | Creating Data Snapshots | Workflow Integration Patterns | Pattern 1: Pre-Training Validation | Pattern 2: Post-Training Audit | Pattern 3: Continuous Monitoring | Performance Considerations | Memory-Efficient Processing | Best Practices for Framework Integration | 1. Integration Timing | 2. Configuration Management | 3. Error Handling and Logging | Summary

Last update: 2025-10-28
Started: 2025-10-28

Getting Started with leakr
Introduction | Basic Usage: The leakr_audit() Function | Simple Example with iris Dataset | Understanding the Output | Working with Train/Test Splits | Detecting Specific Leakage Patterns | Target Leakage Detection | Duplication Detection | Configuration and Customisation | Visualising Results | Working with Large Datasets | Next Steps | Summary

Last update: 2025-10-28
Started: 2025-10-28