-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_missing_datasets.sh
More file actions
executable file
·38 lines (29 loc) · 1019 Bytes
/
Copy pathtest_missing_datasets.sh
File metadata and controls
executable file
·38 lines (29 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Test script to demonstrate behavior with missing datasets
# This temporarily moves datasets to show the warning messages
echo "=== Testing with Missing Datasets ==="
# Backup existing datasets
mkdir -p .dataset_backup
if [ -f "data/boston_housing.csv" ]; then
mv data/boston_housing.csv .dataset_backup/
echo "Temporarily moved Boston dataset"
fi
if [ -f "data/mnist_train.csv" ]; then
mv data/mnist_train.csv .dataset_backup/
echo "Temporarily moved MNIST training dataset"
fi
echo
echo "Running test with missing datasets..."
./test_mlp.sh || echo "Test completed with warnings as expected"
echo
echo "Restoring datasets..."
if [ -f ".dataset_backup/boston_housing.csv" ]; then
mv .dataset_backup/boston_housing.csv data/
echo "Restored Boston dataset"
fi
if [ -f ".dataset_backup/mnist_train.csv" ]; then
mv .dataset_backup/mnist_train.csv data/
echo "Restored MNIST training dataset"
fi
rmdir .dataset_backup 2>/dev/null || true
echo "Dataset test completed!"