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