Dockerfile

This commit is contained in:
Mateusz 2024-04-01 17:30:25 +02:00
parent 545a56f095
commit ce64e16c03
2 changed files with 2 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -29,7 +29,7 @@ pipeline {
stage('Run create-dataset script') {
steps {
sh 'chmod +x create-dataset.py'
sh 'python3 ./create-dataset.py $KAGGLE_USERNAME $KAGGLE_KEY'
sh 'python3 ./create-dataset.py'
}
}
stage('Archive Artifacts') {

View File

@ -11,6 +11,7 @@ from sklearn.model_selection import train_test_split
def download_kaggle_dataset():
print(os.environ.get("KAGGLE_USERNAME"))
print(os.environ.get("KAGGLE_KEY"))
kaggle = KaggleApi()
kaggle.authenticate()
kaggle.dataset_download_files("mlg-ulb/creditcardfraud", path="./", unzip=True)