ghead to head
This commit is contained in:
parent
2f272b6b44
commit
a0f3f901dc
@ -11,13 +11,12 @@ grep -P "^$" -n avocado-updated-2020.csv
|
||||
# usuniecie zbednej kolumny year (redundantne dane)
|
||||
cut -d -f12 --complement avocado-updated-2020.csv
|
||||
|
||||
apt-get install ghead
|
||||
ghead -n 1 avocado-updated-2020.csv> header.csv
|
||||
ghead -n -1 avocado-updated-2020.csv | shuf > avocado-updated-2020-shuf.csv
|
||||
head -n 1 avocado-updated-2020.csv> header.csv
|
||||
head -n -1 avocado-updated-2020.csv | shuf > avocado-updated-2020-shuf.csv
|
||||
|
||||
# podzial na train/dev/test
|
||||
ghead -n 6609 avocado-updated-2020-shuf.csv > avocado-updated-2020-test.csv
|
||||
ghead -n 13218 avocado-updated-2020-shuf.csv | tail -n 6609 > avocado-updated-2020-dev.csv
|
||||
head -n 6609 avocado-updated-2020-shuf.csv > avocado-updated-2020-test.csv
|
||||
head -n 13218 avocado-updated-2020-shuf.csv | tail -n 6609 > avocado-updated-2020-dev.csv
|
||||
tail -n +13219 avocado-updated-2020-shuf.csv > avocado-updated-2020-train.csv
|
||||
|
||||
wc -l avocado-updated-2020-*.csv
|
||||
|
Loading…
Reference in New Issue
Block a user