script fix
This commit is contained in:
parent
00e3446c93
commit
88faffea89
@ -5,10 +5,15 @@ 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 "$1" "data_shuf" > "data_train"
|
||||
head -n 544 "data_shuf" > "data_test"
|
||||
head -n 1088 "data_shuf" | tail -n 544 > "data_dev"
|
||||
head -n +1089 "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
|
||||
|
@ -5,15 +5,9 @@ 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"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user