ium_487197/download_dataset.sh

8 lines
303 B
Bash
Raw Normal View History

2023-03-26 18:19:43 +02:00
#!/bin/bash
2023-03-26 17:25:53 +02:00
kaggle datasets download -d sohier/crime-in-baltimore
unzip crime-in-baltimore.zip
head -n 8000 BPD_Part_1_Victim_Based_Crime_Data.csv > baltimore_train.csv
tail -n 2000 BPD_Part_1_Victim_Based_Crime_Data.csv > baltimore_test.csv
head -n 2000 baltimore_train.csv > baltimore_dev.csv