From c94c727a1f3bcc6253d28c9e70c4ff37cdf07759 Mon Sep 17 00:00:00 2001 From: s487179 Date: Fri, 14 Apr 2023 17:37:45 +0200 Subject: [PATCH] Edit Jenkinsfile, datasetScript.sh --- Jenkinsfile | 6 ++++++ datasetScript.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c59f0fd..7b16cf6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,6 +12,12 @@ pipeline { description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', name: 'KAGGLE_KEY' ) + string( + defaultValue: '50', + description: 'dataset cutoff', + name: 'CUTOFF', + trim: false + ) } stages { stage('Run sh file') { diff --git a/datasetScript.sh b/datasetScript.sh index 2b907eb..cb63618 100644 --- a/datasetScript.sh +++ b/datasetScript.sh @@ -4,4 +4,4 @@ kaggle datasets download -d rishikeshkonapure/home-loan-approval unzip -o home-loan-approval.zip cat loan_sanction_test.csv loan_sanction_train.csv > loan_sanction.csv head -n 5 loan_sanction.csv -{ head -n 1 loan_sanction.csv && tail -n +2 loan_sanction.csv | shuf; } > loan_sanction_shuffled.csv \ No newline at end of file +{ head -n 1 loan_sanction.csv && tail -n +2 loan_sanction.csv | shuf; } | tail -n +2 | head -n $(($CUTOFF+1)) > loan_sanction_shuffled.csv \ No newline at end of file