Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def testing(weights, testingData):
- outputNode = [[0] * len(testingData)]*4
- for emotions in range(1, 5):
- moodOutput = []
- for i in range(len(testingData)):
- for p in range(0, 400):
- outputNode[emotions-1][i] += testingData[i].image[p]*weights[emotions-1][p]
- outputNode[emotions-1][i] = sign(outputNode[emotions-1][i])
- #Decide classification based on outputNode
- #return "key vector" for testingdata
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement