Data Engineering/data preprocessing

train/test set으로 비율로 나누기

quantapia 2021. 3. 12. 15:19

1) Line 수 

split -l $[$(wc -l filename | cut -d" "  -f1) * 70  / 100 ] filename

 

2) 퍼센트

split -b $[$(wc -c filename | cut -d" "  -f1) * 70  / 100 ] filename