2024-03-24 12:13:05 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-03-24 12:30:04 +01:00
|
|
|
ls -al
|
|
|
|
|
2024-03-24 12:13:05 +01:00
|
|
|
# Count the number of lines in the original dataset
|
2024-03-24 12:30:04 +01:00
|
|
|
wc -l < data/creditcard_shuf.csv > stats.txt
|
2024-03-24 12:13:05 +01:00
|
|
|
# Count the number of lines in the training and testing datasets
|
2024-03-24 12:30:04 +01:00
|
|
|
wc -l < data/creditcard_train.csv > stats_train.txt
|
|
|
|
wc -l < daya/creditcard_test.csv > stats_test.txt
|
2024-03-24 12:13:05 +01:00
|
|
|
|
|
|
|
# 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/
|