changed Jenkinsfile
This commit is contained in:
parent
430f10ce26
commit
c41a5da61c
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -20,7 +20,7 @@ pipeline {
|
|||||||
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
||||||
"KAGGLE_KEY=${env.KAGGLE_KEY}"])
|
"KAGGLE_KEY=${env.KAGGLE_KEY}"])
|
||||||
{
|
{
|
||||||
sh 'bash ./download_dataset.sh ${params.CUTOFF}'
|
sh "bash ./download_dataset.sh ${params.CUTOFF}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ unzip -o spotify-dataset.zip
|
|||||||
echo "------------------ Shufle ------------------"
|
echo "------------------ Shufle ------------------"
|
||||||
shuf Spotify_Dataset.csv -o shuffled_spotify.csv
|
shuf Spotify_Dataset.csv -o shuffled_spotify.csv
|
||||||
|
|
||||||
echo "------------------ Cut off top: ${1} rows ------------------"
|
echo "------------------ Cut off top: $1 rows ------------------"
|
||||||
head -n $1 shuffled_spotify.csv > cutoff_spotify.csv
|
head -n $1 shuffled_spotify.csv > cutoff_spotify.csv
|
||||||
|
|
||||||
echo "------------------ Split ------------------"
|
echo "------------------ Split ------------------"
|
||||||
@ -23,4 +23,4 @@ tail -n $num_test cutoff_spotify.csv | head -n $num_validation > validation.csv
|
|||||||
tail -n $num_test cutoff_spotify.csv | tail -n +$(($num_validation + 1)) > test.csv
|
tail -n $num_test cutoff_spotify.csv | tail -n +$(($num_validation + 1)) > test.csv
|
||||||
|
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
mv Spotify_Dataset.csv cutoff_spotify.csv train.csv validation.csv test.csv artifacts/
|
mv Spotify_Dataset.csv cutoff_spotify.csv train.csv validation.csv test.csv artifacts/
|
||||||
|
Loading…
Reference in New Issue
Block a user