Skip to content

Commit

Permalink
Update data/check_pandas.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin M Jablonka <[email protected]>
  • Loading branch information
MicPie and kjappelbaum committed Feb 1, 2024
1 parent 73c197c commit 96067cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/check_pandas.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
This check performs a basic check for data leakage. The checks in this script only focus on SMILES.
Train/test split needs to be run before running this script. This script assumes that `test_smiles.txt` and `val_smiles.txt` exist in the current working directory.
If leakage is detected, an `AssertionError` will be thrown.
This script has a command line interface. You can run it using `python check_pandas <data_dir>`, where `<data_dir>` points to a nested set of directories with `data_clean.csv` files.
"""
import os
from glob import glob
from pathlib import Path
Expand Down

0 comments on commit 96067cf

Please sign in to comment.