Dockerfile
This commit is contained in:
parent
ce64e16c03
commit
22deaa5791
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user