Working on cutoff

This commit is contained in:
Maciej 2021-03-29 02:14:15 +02:00
parent 434b0b3748
commit b2b50b5985
2 changed files with 8 additions and 8 deletions

9
Jenkinsfile vendored
View File

@ -3,10 +3,9 @@ pipeline {
parameters{
string(
defaultValue: 'maciejsobkowiak',
description: 'Kaggle username',
name: 'username',
trim: false
defaultValue: '1000',
description: 'cutoff',
name: 'CUTOFF'
)
}
@ -19,7 +18,7 @@ pipeline {
stage('sh: Shell Script') {
steps {
sh 'chmod +x preparations.sh'
sh './preparations.sh'
sh './preparations.sh $(CUTOFF)'
}
}
stage('archiveArtifacts'){

View File

@ -4,7 +4,7 @@ curl -OL https://git.wmi.amu.edu.pl/s434784/ium_434784/raw/branch/master/who_sui
head -n 1 who_suicide_statistics.csv > names.csv
# Randomizacja zbioru.
shuf who_suicide_statistics.csv > data.shuf
sed 1d who_suicide_statistics.csv | shuf > data.shuf
#cp who_suicide_statistics.csv data.shuf
# Podzial na 3 pozbiory
@ -20,6 +20,7 @@ head -n $DEV data.shuf | tail -n $TEST > data.dev
head -n $NUMROWS data.shuf | tail -n $TRAIN > data.train
echo "Test rows ${TEST}"
echo "Dev rows ${TEST}"
echo "Dev rows ${DEV}"
echo "Train rows ${TRAIN}"
echo "All number of rows ${NUMROWS}"
echo "All number of rows ${NUMROWS}"
echo "$1"