Dockerfile
This commit is contained in:
parent
6592cd02ac
commit
8b190e2bd8
@ -1,5 +1,4 @@
|
||||
import os
|
||||
from kaggle.api.kaggle_api_extended import KaggleApi
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
|
||||
@ -9,9 +8,9 @@ from sklearn.model_selection import train_test_split
|
||||
|
||||
|
||||
def download_kaggle_dataset():
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user