ium_464913/stats.sh
2024-03-24 12:34:40 +01:00

12 lines
419 B
Bash

#!/bin/bash
# Count the number of lines in the original dataset
wc -l < data/creditcard_shuf.csv > stats.txt
# Count the number of lines in the training and testing datasets
wc -l < data/creditcard_train.csv > stats_train.txt
wc -l < data/creditcard_test.csv > stats_test.txt
# Create a directory for the data
mkdir -p data
# Move the statistics to the data directory
mv stats.txt stats_train.txt stats_test.txt data/