Download data script improvements

This commit is contained in:
s444380 2022-03-27 12:32:35 +02:00
parent 7345fe27a4
commit 0982b860c3

View File

@ -1,7 +1,7 @@
#!/bin/bash
kaggle datasets download -d AnalyzeBoston/crimes-in-boston
unzip crimes-in-boston.zip
kaggle datasets download -d AnalyzeBoston/crimes-in-boston --force
unzip -o crimes-in-boston.zip
shuf crime.csv | head -n $1 > crime.shuf
head -n 30000 crime.shuf > crime.test
head -n 60000 crime.shuf | tail -n 30000 > crime.dev