This commit is contained in:
piotrwrzodak 2023-04-21 00:07:49 +02:00
parent 3ba10d3ce7
commit 3a16591ae5

View File

@ -8,7 +8,7 @@ unzip airbnb-prices-in-european-cities.zip -d data
rm airbnb-prices-in-european-cities.zip rm airbnb-prices-in-european-cities.zip
head -n $CUTOFF data/barcelona_weekends.csv | shuf > data/barcelona_weekends.shuf.csv head -n $CUTOFF data/barcelona_weekends.csv | shuf > data/barcelona_weekends.shuf.csv
head -n $(($CUTOFF/4)) data/barcelona_weekends.shuf.csv > data/barcelona_weekends.test.csv head -n 25 data/barcelona_weekends.shuf.csv > data/barcelona_weekends.test.csv
head -n $(($CUTOFF/2)) data/barcelona_weekends.shuf.csv | tail -n 25 > data/barcelona_weekends.dev.csv head -n 50 data/barcelona_weekends.shuf.csv | tail -n 25 > data/barcelona_weekends.dev.csv
tail -n $(($CUTOFF/2+1)) data/barcelona_weekends.shuf.csv > data/barcelona_weekends.train.csv tail -n +51 data/barcelona_weekends.shuf.csv > data/barcelona_weekends.train.csv
rm data/barcelona_weekends.shuf.csv rm data/barcelona_weekends.shuf.csv