ium_434766/script.sh
2021-03-26 16:36:45 +01:00

19 lines
723 B
Bash

curl -OL https://https://git.wmi.amu.edu.pl/s434766/ium_434766/src/branch/master/healthcare-dataset-stroke-data.csv
# Podzielenie pliku csv na test/dev/train
head -n 1 healthcare-dataset-stroke-data.csv > header.csv
tail -n +2 healthcare-dataset-stroke-data.csv | shuf > healthcare.data.shuf
head -n 1022 healthcare.data.shuf > healthcare.data.test
head -n 2044 healthcare.data.shuf| tail -n 1022 > healthcare.data.dev
tail -n +3066 healthcare.data.shuf > healthcare.data.train
cat header.csv healthcare.data.test > scriptTest.csv
cat header.csv healthcare.data.dev > scriptDev.csv
cat header.csv healthcare.data.train > scriptTrain.csv
head -n $1 healthcare.data.shuf > lab3.data
cat header.csv lab3.data > lab3.csv