Dockerfile
This commit is contained in:
parent
0b63694ab1
commit
e1b8cc77bb
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -23,9 +23,9 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Run create-dataset script') {
|
stage('Run create-dataset script') {
|
||||||
steps {
|
steps {
|
||||||
withEnv (["KAGGLE_USERNAME=${env.KAGGLE_USERNAME}", "KAGGLE_KEY=${env.KAGGLE_KEY}"]) {
|
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh 'chmod +x create-dataset.py'
|
sh 'chmod +x create-dataset.py'
|
||||||
sh 'python3 ./create-dataset.py $KAGGLE_KEY'
|
sh 'python3 ./create-dataset.py $KAGGLE_USERNAME'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@ from sklearn.model_selection import train_test_split
|
|||||||
|
|
||||||
def download_kaggle_dataset():
|
def download_kaggle_dataset():
|
||||||
print(sys.argv)
|
print(sys.argv)
|
||||||
os.environ["KAGGLE_USERNAME"] = sys.argv[1]
|
os.environ["KAGGLE_USERNAME"] = "vskyper"
|
||||||
os.environ["KAGGLE_KEY"] = sys.argv[2]
|
os.environ["KAGGLE_KEY"] = sys.argv[1]
|
||||||
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