Dockerfile
This commit is contained in:
parent
5269c03239
commit
1f518e4c14
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -24,9 +24,8 @@ pipeline {
|
|||||||
stage('Run create-dataset script') {
|
stage('Run create-dataset script') {
|
||||||
steps {
|
steps {
|
||||||
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh 'echo $KAGGLE_USERNAME'
|
|
||||||
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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ from sklearn.model_selection import train_test_split
|
|||||||
|
|
||||||
|
|
||||||
def download_kaggle_dataset():
|
def download_kaggle_dataset():
|
||||||
|
print(f'Kaggle API key: {os.environ["KAGGLE_KEY"]}')
|
||||||
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