Ejemplo n.º 1
0
# for i in range(16000,20000):
#     if i%200==0:
#         testingdata.newSequence()
#     testingdata.appendLinked(RBallRollPlate[i,:], [5])
# for i in range(16000,20000):
#     if i%200==0:
#         testingdata.newSequence()
#     testingdata.appendLinked(LRopeway[i,:], [6])
# for i in range(16000,20000):
#     if i%200==0:
#         testingdata.newSequence()
#     testingdata.appendLinked(RRopeway[i,:], [7])
# 
# testingdata._convertToOneOfMany()
# 
# testingAccu = 100-percentError(trainer.testOnClassData(dataset=testingdata), testingdata['class'])
# print testingAccu

 

# sequenceStartIndex = range(0,19800,200)
# start = np.random.choice(sequenceStartIndex)
# print start

startSeq = np.random.randint(9900)

for i in range(startSeq,startSeq+100):
    x = vanillaRNN.activate(BellRingRJoint[i])
for i in range(startSeq,startSeq+100):
    x = vanillaRNN.activate(BallLiftJoint[i])
print argmax(x)