Dockerfile

This commit is contained in:
Mateusz 2024-04-01 17:09:39 +02:00
parent 9a71a5ee0e
commit e3d5fa89f1
2 changed files with 12 additions and 12 deletions

2
Jenkinsfile vendored
View File

@ -31,7 +31,7 @@ pipeline {
}
stage('Archive Artifacts') {
steps {
archiveArtifacts artifacts: '/data/*', onlyIfSuccessful: true
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
}
}
}

View File

@ -72,11 +72,11 @@ def save_undersample_data(
y_train_undersample,
y_test_undersample,
):
undersample_data.to_csv("/data/undersample_data.csv", index=False)
X_train_undersample.to_csv("/data/X_train_undersample.csv", index=False)
X_test_undersample.to_csv("/data/X_test_undersample.csv", index=False)
y_train_undersample.to_csv("/data/y_train_undersample.csv", index=False)
y_test_undersample.to_csv("/data/y_test_undersample.csv", index=False)
undersample_data.to_csv("data/undersample_data.csv", index=False)
X_train_undersample.to_csv("data/X_train_undersample.csv", index=False)
X_test_undersample.to_csv("data/X_test_undersample.csv", index=False)
y_train_undersample.to_csv("data/y_train_undersample.csv", index=False)
y_test_undersample.to_csv("data/y_test_undersample.csv", index=False)
def split_whole_data(df):
@ -90,16 +90,16 @@ def split_whole_data(df):
def save_whole_data(df, X_train, X_test, y_train, y_test):
df.to_csv("/data/creditcard.csv", index=False)
X_train.to_csv("/data/X_train.csv", index=False)
X_test.to_csv("/data/X_test.csv", index=False)
y_train.to_csv("/data/y_train.csv", index=False)
y_test.to_csv("/data/y_test.csv", index=False)
df.to_csv("data/creditcard.csv", index=False)
X_train.to_csv("data/X_train.csv", index=False)
X_test.to_csv("data/X_test.csv", index=False)
y_train.to_csv("data/y_train.csv", index=False)
y_test.to_csv("data/y_test.csv", index=False)
def main():
download_kaggle_dataset()
os.makedirs("/data", exist_ok=True)
os.makedirs("data", exist_ok=True)
df = load_data("creditcard.csv")
df = normalize_data(df)