ium_s449288/lab3/skrypt.sh
2022-04-02 14:21:47 +02:00

12 lines
404 B
Bash

#!/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