In this lab you will learn how to use the Pyro module called Conx to experiment with neural networks. You will be doing a number of short exercises to get a sense of what functionality is available in Conx. Then you will reproduce the compression experiment mentioned in Lecture 12. Finally, you will create a neural network that can recognize pictures of people wearing sunglasses verses those without sunglasses.
/usr/lib/python2.4/site-packages/pyrobot/brain/conx.py
tar xvfz pics.tar.gzIt will create a directory called pics with all the pictures in it. You can view one of these images using the xv command. Each file is named according to the following convention:
userid_pose_expression_eyes_scale.pgm
length = # of test case
corpus = []
for i in range(0,length):
corpus.append({"input" : in[i], "output" : out[i]})
n.setLearning(0) #turn learning off
n.setOrderedInputs(1) #turn off the default random ordering for inputs
hid = n.getLayer('hidden') #get a pointer to the hidden layer
hid.setLog("hiddens") #set a log file for the hidden layer
n.sweep() #sweep through the inputs in order
hid.closeLog() #close the log file for the hidden layer