-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckNetwork.py
More file actions
30 lines (23 loc) · 801 Bytes
/
checkNetwork.py
File metadata and controls
30 lines (23 loc) · 801 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
import scipy.io
from NeuralNetwork import NeuralNetwork
def main():
mat = scipy.io.loadmat('PeaksData.mat')
Y_train = mat['Ct'].T
# print(X_test.shape)
X_train = mat['Yt']
# print(X_train.shape)
Y_test = mat['Cv'].T
X_test = mat['Yv']
learning_rate = 0.00001
num_epochs = 1000
batch_size = 64
accuracy_sample_size_train = 6500
accuracy_sample_size_test = 2500
numLayers = 3
activationFuncName = 'relu'
neuralNetwork = NeuralNetwork(numLayers, activationFuncName, learning_rate, num_epochs, batch_size, Y_train,
X_train, Y_test, X_test,
accuracy_sample_size_train, accuracy_sample_size_test)
neuralNetwork.runNeuralNetwork()
if __name__ == '__main__':
main()