Dockerfile
This commit is contained in:
parent
78754f7a40
commit
19f91d4861
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -28,8 +28,8 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Run create-dataset script') {
|
stage('Run create-dataset script') {
|
||||||
steps {
|
steps {
|
||||||
sh 'chmod +x create-dataset.py'
|
sh 'chmod +x create-dataset.py'
|
||||||
sh 'python3 ./create-dataset.py'
|
sh 'python3 ./create-dataset.py $KAGGLE_USERNAME $KAGGLE_KEY'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive Artifacts') {
|
stage('Archive Artifacts') {
|
||||||
|
@ -10,6 +10,8 @@ from sklearn.model_selection import train_test_split
|
|||||||
|
|
||||||
|
|
||||||
def download_kaggle_dataset():
|
def download_kaggle_dataset():
|
||||||
|
os.environ["KAGGLE_USERNAME"] = sys.argv[1]
|
||||||
|
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