script fix
This commit is contained in:
parent
4da4bb212a
commit
00e3446c93
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -9,8 +9,11 @@ node {
|
||||
trim: false),
|
||||
password(defaultValue: '',
|
||||
description: 'Kaggle token',
|
||||
name: 'KAGGLE_KEY')
|
||||
|
||||
name: 'KAGGLE_KEY'),
|
||||
string(defaultV string(defaultValue: '5000',
|
||||
description: 'Data cutoff',
|
||||
name: 'CUTOFF',
|
||||
trim: false),
|
||||
])
|
||||
]
|
||||
)
|
||||
@ -22,7 +25,7 @@ node {
|
||||
sh '''
|
||||
#!/usr/bin/env bash
|
||||
chmod 777 get_data_simple.sh
|
||||
./get_data_simple.sh
|
||||
./get_data_simple.sh ${params.CUTOFF}"
|
||||
'''
|
||||
archiveArtifacts "data_dev"
|
||||
archiveArtifacts "data_shuf"
|
||||
|
@ -5,15 +5,10 @@ if kaggle datasets download -d sgonkaggle/youtube-trend-with-subscriber && unzip
|
||||
COUNT=$(wc -l "USvideos_modified.csv")
|
||||
echo "${COUNT}"
|
||||
head -n -1 "USvideos_modified.csv" | shuf > "data_shuf"
|
||||
head -n 544 "data_shuf" > "data_test"
|
||||
head -n 1088 "data_shuf" | tail -n 544 > "data_dev"
|
||||
head -n +1089 "data_shuf" > "data_train"
|
||||
head -n "$1" "data_shuf" > "data_train"
|
||||
echo "Shuffled dataset"
|
||||
wc -l "data_shuf"
|
||||
echo "Test dataset"
|
||||
wc -l "data_test"
|
||||
echo "Dev dataset"
|
||||
wc -l "data_dev"
|
||||
echo "Train dataset"
|
||||
wc -l "data_train"
|
||||
python main.py USvideos_modified.csv
|
||||
|
Loading…
Reference in New Issue
Block a user