Dockerfile

This commit is contained in:
Mateusz 2024-04-01 17:32:50 +02:00
parent ce64e16c03
commit 22deaa5791

View File

@ -10,11 +10,9 @@ from sklearn.model_selection import train_test_split
def download_kaggle_dataset():
print(os.environ.get("KAGGLE_USERNAME"))
print(os.environ.get("KAGGLE_KEY"))
kaggle = KaggleApi()
kaggle.authenticate()
kaggle.dataset_download_files("mlg-ulb/creditcardfraud", path="./", unzip=True)
os.system("kaggle datasets download -d mlg-ulb/creditcardfraud")
os.system("unzip creditcardfraud.zip")
os.system("rm creditcardfraud.zip")
def load_data(name):