Dockerfile
This commit is contained in:
parent
6592cd02ac
commit
f615296216
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -22,7 +22,8 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh 'python3 create-dataset.py'
|
sh 'chmod +x create-dataset.py'
|
||||||
|
sh 'python3 ./create-dataset.py'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
from kaggle.api.kaggle_api_extended import KaggleApi
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
@ -9,9 +8,9 @@ from sklearn.model_selection import train_test_split
|
|||||||
|
|
||||||
|
|
||||||
def download_kaggle_dataset():
|
def download_kaggle_dataset():
|
||||||
kaggle = KaggleApi()
|
os.system("kaggle datasets download -d mlg-ulb/creditcardfraud")
|
||||||
kaggle.authenticate()
|
os.system("unzip creditcardfraud.zip")
|
||||||
kaggle.dataset_download_files("mlg-ulb/creditcardfraud", path="./", unzip=True)
|
os.system("rm creditcardfraud.zip")
|
||||||
|
|
||||||
|
|
||||||
def load_data(name):
|
def load_data(name):
|
||||||
|
Loading…
Reference in New Issue
Block a user