ium_z444510/create-dataset.sh
2023-04-20 22:27:59 +02:00

8 lines
486 B
Bash

#! /usr/bin/bash
head -n -1 ium_z444510/barcelona_weekends.csv | shuf > ium_z444510/barcelona_weekends.shuf.csv
head -n 25 ium_z444510/barcelona_weekends.shuf.csv > ium_z444510/barcelona_weekends.test.csv
head -n 50 ium_z444510/barcelona_weekends.shuf.csv | tail -n 25 > ium_z444510/barcelona_weekends.dev.csv
tail -n +51 ium_z444510/barcelona_weekends.shuf.csv > ium_z444510/barcelona_weekends.train.csv
rm ium_z444510/barcelona_weekends.shuf.csv
wc -l ium_z444510/barcelona_weekends*