Dockerfile

This commit is contained in:
Mateusz 2024-04-01 15:27:29 +02:00
parent a9297a5a47
commit 8a6ab2c57a

View File

@ -1,4 +1,5 @@
import os
from kaggle.api.kaggle_api_extended import KaggleApi
import pandas as pd
import numpy as np
@ -8,9 +9,10 @@ from sklearn.model_selection import train_test_split
def download_kaggle_dataset():
os.system("kaggle datasets download -d mlg-ulb/creditcardfraud")
os.system("unzip creditcardfraud.zip")
os.system("rm creditcardfraud.zip")
os.system("pwd")
kaggle = KaggleApi()
kaggle.authenticate()
kaggle.dataset_download_files("mlg-ulb/creditcardfraud", path="./", unzip=True)
def load_data(name):