Dockerfile
This commit is contained in:
parent
545a56f095
commit
ce64e16c03
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -29,7 +29,7 @@ pipeline {
|
|||||||
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 $KAGGLE_USERNAME $KAGGLE_KEY'
|
sh 'python3 ./create-dataset.py'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive Artifacts') {
|
stage('Archive Artifacts') {
|
||||||
|
@ -11,6 +11,7 @@ from sklearn.model_selection import train_test_split
|
|||||||
|
|
||||||
def download_kaggle_dataset():
|
def download_kaggle_dataset():
|
||||||
print(os.environ.get("KAGGLE_USERNAME"))
|
print(os.environ.get("KAGGLE_USERNAME"))
|
||||||
|
print(os.environ.get("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