/
setup.sh
64 lines (60 loc) · 2.68 KB
/
setup.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# source setup.sh to ensure that the relevant directories are setup for the tutorial
# This script assumes that the user is working with a UNIX/LINUX derived operating
# system running bash.
#
echo "....... Sourcing the TensorFlow-Tutorial setup.sh script"
echo "---------------------------------------------------------------"
echo ""
echo " setup.sh Copyright (C) 2020 Adrian Bevan"
echo ""
echo " This program comes with ABSOLUTELY NO WARRANTY."
echo " This is free software, and you are welcome to redistribute it"
echo " under certain conditions."
echo ""
echo "---------------------------------------------------------------"
echo ""
echo "Make directories required for the tutorial output"
echo ""
if [ ! -d scripts/log ]; then
echo " Making the directory ./scripts/fig"
mkdir scripts/fig
else
echo " The directory ./scripts/fig already exists"
fi
if [ ! -d scripts/log ]; then
echo " Making the directory ./scripts/log"
mkdir scripts/log
else
echo " The directory ./scripts/log already exists"
fi
echo ""
echo "Please run the following command to check that these now exist"
echo ""
echo " ls scripts/"
echo ""
echo "In addition to the python files for this tutorial you should now see two new directories:"
echo ""
echo " ./scripts/fig - used by the scripts to save output plots generated during model training"
echo " ./scripts/log - used by the runAll.sh script to save log files for the optimisation scripts:"
echo ""
echo " BatchSizeNN.py - scan through different batch sizes to study loss"
echo " and accuracy performance of training as a function"
echo " of this hyperparameter"
echo ""
echo " DropoutNN.py - scan through different dropout rates to study loss"
echo " and accuracy performance of training as a function"
echo " of this hyperparameter"
echo ""
echo " LeakyReluScanNN.py - scan through different leaky rates to study loss"
echo " and accuracy performance of training as a function"
echo " of this hyperparameter"
echo ""
echo " ValidationSplitNN.py - scan through different validation splits to study loss"
echo " and accuracy performance of training as a function"
echo " of this hyperparameter"
echo ""
echo "This tutorial comes with a set of scripts and a set of jupyter notebooks. Please refer to"
echo "the relevant directories for your preferred format of example:"
echo " scripts "
echo " notebooks "