#!/usr/bin/env python
import random
class nn_network:
#makes a plain, random, stupid network
def __init__(self,size):
self.networkSize = size
self.weights = []
count = 0
for layerLoop in xrange(0,len(self.networkSize)):
for neuronLoop in xrange(0,self.networkSize[layerLoop]):
if layerLoop != 0:
for weightLoop in xrange(0,self.networkSize[layerLoop-1]):
self.weights.append(random.randint(-5,5))
# neurons
repr(self.weights)
def print_weights(self):
repr(self.weights)
network = nn_network([3,5,2])
network.print_weights()