Skip to content

Commit

Permalink
download fit
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Kaillo committed Feb 22, 2022
1 parent ed8293b commit b3679af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ main:
random_seed: 42
data:
train_data: "mlops-creditcard_fraud_predictive/train_data.csv:latest"
file_url: "https://www.kaggle.com/mlg-ulb/creditcardfraud.csv"
file_url: "https://www.kaggle.com/mlg-ulb/creditcardfraud?select=creditcard.csv"
reference_dataset: "mlops-creditcard_fraud_predictive/raw_data.csv:latest"
# Threshold for Kolomorov-Smirnov test
ks_alpha: 0.05
Expand Down
4 changes: 2 additions & 2 deletions download/download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def process_args(args):
logger.info("Creating run")
with wandb.init(job_type="download_data") as run:
# Load the file
# od.download(args.file_url)
with open("creditcard.csv", 'rb') as file:
od.download(args.file_url)
with open("./creditcard.csv", 'rb') as file:
fp.writelines(file)
# Download the file streaming and write to open temp file
# with requests.get(args.file_url, stream=True) as r:
Expand Down

0 comments on commit b3679af

Please sign in to comment.