ium_s449288/lab3/skrypt.sh

12 lines
404 B
Bash
Raw Normal View History

2022-03-25 21:12:58 +01:00
#!/bin/sh
kaggle datasets download -d mterzolo/lego-sets
unzip -o lego-sets.zip
shuf lego_sets.csv > lego_sets.shuf.csv
head -104157 lego_sets.shuf.csv > lego_sets.train.csv
tail -n +104158 lego_sets.shuf.csv | head -13020 > lego_sets.dev.csv
tail -n +104158 lego_sets.shuf.csv | tail -n +13021 > lego_sets.test.csv
tar -czf lego_sets.tar.gz lego_sets.train.csv lego_sets.dev.csv lego_sets.test.csv