Beispiel #1
0
i = IO(w1, w2, inputb, hiddenb, d)
index_image = 0
index_image += struct.calcsize('>llll')
index_label = 0
index_label += struct.calcsize('>ll')

for j in range(21):
    input_x = r._readImages(filename_image, index_image)
    i._input_xs(input_x, d)
    index_image += image_lenth
    label = r._readLabels(filename_label, index_label)
    i._labels(label, d)
    index_label += label_lenth
    o = Operation()
    o._create_forward(d)
    o._error_save(d)
    o._create_back(d)

out = d._get_weight_input_hidden()
print(out)
out1 = d._get_weight_hidden_output()
print(out1)

p = d._get_input_b()
print(p)
q = d._get_hidden_b()
print(q)

r = d._get_output_ys()
print(r)