testing sh file4

This commit is contained in:
Maciej Tyczynski 2023-04-17 21:58:33 +02:00
parent 9be7a963c9
commit 2ec06fc63d

View File

@ -1,10 +1,8 @@
#!/bin/bash
export LC_ALL=C
wget -O wine.csv https://huggingface.co/datasets/mstz/wine/raw/main/Wine_Quality_Data.csv
num_rows=$(($(wc -l < wine.csv) - 1))
num_rows=$(expr "$num_rows" + 0)
CUTOFF=${1:-num_rows}
CUTOFF=${1:-$num_rows}
train_size=$((CUTOFF * 80 / 100))
test_size=$((CUTOFF * 10 / 100))