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(): def download_kaggle_dataset():
print(os.environ.get("KAGGLE_USERNAME")) os.system("kaggle datasets download -d mlg-ulb/creditcardfraud")
print(os.environ.get("KAGGLE_KEY")) os.system("unzip creditcardfraud.zip")
kaggle = KaggleApi() os.system("rm creditcardfraud.zip")
kaggle.authenticate()
kaggle.dataset_download_files("mlg-ulb/creditcardfraud", path="./", unzip=True)
def load_data(name): def load_data(name):