Module ImportFrom alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias ClassDef bases body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMult ListLoad Num NameLoad Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call NameLoad Num TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Num TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Num Assign NameStore Num Assign NameStore Num While BoolOpAnd CompareLt NameLoad NameLoad BoolOpOr CompareLt NameLoad Num CompareGtE Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Num body Print Call AttributeLoad Str attr NameLoad Print Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad AugAssignAdd NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Num TupleLoad NameLoad Num For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore SubscriptStore NameLoad Index NameLoad SubscriptStore NameLoad ExtSlice Slice Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad AugAssignAdd NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore Call NameLoad NameLoad AugAssignDiv NameStore Call NameLoad NameLoad Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad keyword Str Print NameLoad Print NameLoad Print BinOpMult NameLoad Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index BinOpSub NameLoad Num Print NameLoad Print Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num TupleLoad NameLoad Num Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign TupleStore SubscriptStore NameLoad Index NameLoad NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list
N/A cvxopt matrix spmatrix sparse uniform normal setseed cvxopt.blas dot dotu cvxopt.solvers qp cvxopt.lapack syev N/A numpy np N/A math math kernel Kernel StructuredPCA N/A N/A N/A  Structured Extension for Principle Component Analysis.
		Written by Nico Goernitz, TU Berlin, 2014
	 N/A sobj N/A N/A sol N/A __init__ N/A N/A self sobj N/A N/A N/A N/A self sobj sobj N/A train_dc N/A N/A self max_iter N/A 50 N/A N/A  Solve the optimization problem with a  
		    sequential convex programming/DC-programming
		    approach: 
		    Iteratively, find the most likely configuration of
		    the latent variables and then, optimize for the
		    model parameter using fixed latent states.
		 N/A N N/A N/A N/A self sobj get_num_samples N/A DIMS N/A N/A N/A self sobj get_num_dims N/A latent N/A N/A 0.0 N N/A sol N/A normal DIMS 1 N/A psi N/A matrix 0.0 N/A DIMS N N/A old_psi N/A matrix 0.0 N/A DIMS N N/A threshold N/A matrix 0.0 N/A obj -1 N/A iter 0 N/A N/A N/A iter max_iter N/A N/A iter 2 N/A N/A sum N/A sum N/A abs N/A N/A np array N/A psi old_psi 0.001 N/A N/A N/A N/A Starting iteration {0}. format iter N/A N/A sum N/A sum N/A abs N/A N/A np array N/A psi old_psi N/A iter 1 N/A old_psi N/A matrix psi N/A mean N/A matrix 0.0 N/A DIMS 1 N/A i N/A range N N/A N/A N/A foo N/A latent N/A i N/A psi N/A N/A N/A i N/A N/A N/A self sobj argmax sol i add_prior True N/A mean N/A psi N/A N/A N/A i N/A mpsi N/A matrix psi N/A mean N/A float N N/A A N/A mpsi N/A N/A mpsi trans N/A N/A A size N/A W N/A matrix 0.0 N/A DIMS DIMS N/A N/A syev A W jobz V N/A W N/A A N/A N/A A N/A N/A A trans N/A sol N/A A N/A N/A N/A N/A DIMS 1 N/A sol N/A N/A sum N/A sum N/A abs N/A N/A np array N/A psi old_psi N/A N/A self sol sol N/A N/A self latent latent N/A N/A sol latent threshold N/A apply N/A N/A self pred_sobj N/A N/A N/A  Application of the StructuredPCA:

			score = max_z <sol*,\Psi(x,z)> 
			latent_state = argmax_z <sol*,\Psi(x,z)> 
		 N/A N N/A N/A pred_sobj get_num_samples N/A vals N/A matrix 0.0 N/A N 1 N/A structs N/A N/A i N/A range N N/A N/A N/A N/A vals N/A i struct foo N/A N/A pred_sobj argmax N/A self sol i add_prior True N/A N/A N/A structs append struct N/A N/A vals structs N/A N/A