#!/usr/bin/env python3
import main
import numpy as np
from math import *



nn = main.NeuralNet (8, [3, 3])
nn.input([0.6, 0.4, 0.6, 0.2, 0.2, 0.8, 0.3, 0.9])
nn.update()
print (nn.output())
print ("This is test!")
print ("number of layers = " + str(nn.nLayers))
print ("number of nodes = " + str(nn.nNodes))
print ("number of weights = " + str(nn.nWeights))


#nn.exportNet("testNet.txt")
print ("+++++++++++++++++++++++++++++++++++++++++++++++")
#print (nn.b)
print ("+++++++++++++++++++++++++++++++++++++++++++++++")
#nn.importNet("testNet.txt")
#print (nn.b)
print ("+++++++++++++++++++++++++++++++++++++++++++++++")

print (nn.output())
nn.backpropagate ([0.0, 1.0, 0.0])
nn.push(20)
print (nn.verify([0.6, 0.4, 0.6, 0.2, 0.2, 0.8, 0.3, 0.9], [0.0, 1.0, 0.0]))
print (nn.output())

#print (nn.inp)
#print (nn.n)
#print (nn.b)
#print (nn.w)
print (nn.delta)
#print (nn.dcdw)
