Ejemplo n.º 1
0
def randomweights(ins, outs, n, m):
    matrix = []
    for i in range(outs):
        list = []
        for j in range(ins):
            weight = backprop4.rand(n,m)
            list.append(weight)
        matrix.append(list)
    return matrix
Ejemplo n.º 2
0
def randTest():
    testgeister = []
    d = {}
    i = 680
    while i < 799:
        n = backprop4.rand(680,799)
        d[n]=geisterdata[i]
        i = i + 1
    for i in d.keys():
        testgeister.append(d[i])
    return testgeister    
Ejemplo n.º 3
0
def randValid():
    validgeister = []
    d = {}
    i = 560
    while i < 679:
        n = backprop4.rand(560,679)
        d[n]=geisterdata[i]
        i = i + 1
    for i in d.keys():
        validgeister.append(d[i])
    return validgeister
Ejemplo n.º 4
0
def randTraining():
    newgeister = []
    d = {}
    i = 0
    while i < 560:
        n = backprop4.rand(0,559)
        d[n]=geisterdata[i]
        i = i + 1
    for i in d.keys():
        newgeister.append(d[i])
    return newgeister
Ejemplo n.º 5
0
def randombias(outs, n, m):
    list = []
    for i in range(outs):
        k = backprop4.rand(n,m)
        list.append(k)
    return list