Module ImportFrom alias Import alias identifier Import alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list If CompareNotEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Num Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Call NameLoad Str Assign NameStore Num orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad Str Assign NameStore Num orelse Expr Call NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad NameLoad Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd Num Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr keyword Num attr keyword Num attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num Num Num NameLoad TupleLoad Num Num Num Num ImportFrom alias Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num Num Num Import alias identifier Assign NameStore Call Call AttributeLoad NameLoad attr keyword TupleLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword TupleLoad BinOpDiv SubscriptLoad AttributeLoad NameLoad attr Index Num Num BinOpDiv SubscriptLoad AttributeLoad NameLoad attr Index Num Num keyword AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Num Num ImportFrom alias Assign NameStore Call NameLoad ListLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise
N/A __future__ print_function N/A numpy np N/A os N/A sys pylearn2.utils serial pylearn2.utils.string_utils preprocess usage N/A N/A N/A N/A N/A N/A print 
Run
python extract_kmeans_features.py public_test
to extract features for the ICML 2013 multimodal learning contest's public test images.
or
python extract_kmeans_features.py private_test
to extract features for the ICML 2013 multimodal learning contest's private test images
(which will be released 72 hours before the contest ends)
 N/A N/A N/A N/A len N/A sys argv 2 N/A N/A N/A usage N/A N/A print (You used the wrong number of arguments) N/A N/A quit -1 N/A N/A _ arg N/A sys argv N/A N/A arg public_test N/A N/A base N/A preprocess ${PYLEARN2_DATA_PATH}/icml_2013_multimodal/public_test_lcn N/A expected_num_images 500 N/A N/A N/A arg private_test N/A N/A base N/A preprocess ${PYLEARN2_DATA_PATH}/icml_2013_multimodal/private_test_lcn N/A expected_num_images 500 N/A N/A N/A usage N/A N/A print Unrecognized argument value: arg N/A N/A print Recognized values are: public_test, private_test N/A outdir N/A N/A base N/A -3 layer_1_features N/A N/A N/A serial mkdir outdir N/A paths N/A N/A os listdir base N/A N/A N/A len paths expected_num_images N/A N/A N/A AssertionError N/A N/A N/A N/A N/A Something is wrong with your  base directory. It should contain  N/A str expected_num_images  lcn-preprocessed image files, but contains  N/A str N/A len paths N/A means N/A N/A np load lcn_means.npy N/A norms N/A 1e-07 N/A N/A np sqrt N/A N/A N/A N/A N/A N/A N/A N/A np square means sum axis 3 sum axis 2 sum axis 1 N/A means N/A N/A np transpose N/A N/A N/A np transpose means N/A 1 2 3 0 norms N/A 3 0 1 2 pylearn2.utils sharedX N/A kernels N/A sharedX N/A N/A np transpose means N/A 0 3 1 2 N/A theano.tensor T N/A X N/A N/A N/A T TensorType broadcastable N/A False False False dtype N/A kernels dtype N/A bc01 N/A N/A X dimshuffle x 2 0 1 N/A Z N/A N/A N/A T nnet conv2d input bc01 filters kernels subsample N/A N/A N/A N/A means shape N/A 1 2 N/A N/A N/A means shape N/A 2 2 filter_shape N/A N/A N/A kernels get_value shape N/A F N/A N/A N/A N/A T signal downsample max_pool_2d Z N/A 2 2 N/A F N/A N/A T clip N/A F 0.5 0.0 10.0 theano function N/A f N/A function N/A X F N/A N/A i path N/A enumerate paths N/A N/A N/A print i N/A N/A N/A X N/A N/A np load N/A N/A base / path N/A N/A N/A X ndim 3 N/A F N/A f X N/A N/A N/A np save N/A N/A outdir / path F N/A N/A N/A Exception N/A e N/A N/A