Dockerfile
This commit is contained in:
parent
19f91d4861
commit
545a56f095
@ -10,8 +10,7 @@ from sklearn.model_selection import train_test_split
|
|||||||
|
|
||||||
|
|
||||||
def download_kaggle_dataset():
|
def download_kaggle_dataset():
|
||||||
os.environ["KAGGLE_USERNAME"] = sys.argv[1]
|
print(os.environ.get("KAGGLE_USERNAME"))
|
||||||
os.environ["KAGGLE_KEY"] = sys.argv[2]
|
|
||||||
kaggle = KaggleApi()
|
kaggle = KaggleApi()
|
||||||
kaggle.authenticate()
|
kaggle.authenticate()
|
||||||
kaggle.dataset_download_files("mlg-ulb/creditcardfraud", path="./", unzip=True)
|
kaggle.dataset_download_files("mlg-ulb/creditcardfraud", path="./", unzip=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user