Module Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias If CompareEq NameLoad Str body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad Num NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad Num NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Num TupleLoad Num NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num NameLoad Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num NameLoad Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num NameLoad Num Assign NameStore BinOpSub NameLoad Num Assign SubscriptStore NameLoad ExtSlice Index Num Slice BinOpAdd SubscriptLoad NameLoad ExtSlice Index Num Slice Num Assign NameStore UnaryOpUSub NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad ListLoad NameLoad ListLoad BinOpAdd NameLoad Num ListLoad BinOpSub NameLoad Num ListLoad NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Assign NameStore Call NameLoad ListLoad NameLoad Num Num BinOpDiv Num BinOpMult NameLoad Num Num Assign NameStore Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Call AttributeLoad NameLoad attr keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Call AttributeLoad NameLoad attr keyword Str keyword BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Call AttributeLoad NameLoad attr keyword Str keyword BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Call AttributeLoad NameLoad attr keyword Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Num Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Num BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Num BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Print AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Call AttributeLoad NameLoad attr keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Call AttributeLoad NameLoad attr keyword Str keyword BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Call AttributeLoad NameLoad attr keyword Str keyword BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ListLoad SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index TupleLoad Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad Num Call AttributeLoad NameLoad attr Num keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index Num Slice NameLoad BinOpSub BinOpAdd NameLoad NameLoad Num SubscriptLoad NameLoad ExtSlice Index Num Slice NameLoad BinOpSub BinOpAdd NameLoad NameLoad Num Num keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index Num Slice Num NameLoad SubscriptLoad NameLoad ExtSlice Index Num Slice Num NameLoad Num keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index Num Slice BinOpAdd NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Index Num Slice BinOpAdd NameLoad NameLoad Num keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListComp BinOpAdd NameLoad Num comprehension NameStore Call NameLoad Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print Str
N/A N/A cvxopt co N/A numpy np N/A pylab pl N/A matplotlib.pyplot plt N/A math ssad SSAD ocsvm OCSVM mkl MKLWrapper kernel Kernel N/A N/A __name__ __main__ N/A N/A 
	MKL is a wrapper around a specific method (here SSAD) and
	takes a list of kernels as input argument. 

	For training each of the kernels should have the same size,
	say NxN. Each kernel captures a different feature representation 
	of the very same training data points. E.g., kernel1 is a BOW
	kernel, kernel2 is a Lexical Diversity kernel of the data points
	x_1,...,x_N.

	During training and testing, the order of the kernels
	should stay the same, e.g. if kernel1 is a BOW kernel during
	training, it must be kernel1 during testing as well.

	For testing, the kernel should have size M x N_1:
	M is the number of test samples and N_1 the number of 
	support vectors (N_1 <= N).

	 N/A P_NORM 2.1 N/A N_pos 100 N/A N_neg 100 N/A N_unl 200 N/A yp N/A N/A co matrix 1 N/A 1 N_pos i N/A yu N/A N/A co matrix 0 N/A 1 N_unl i N/A yn N/A N/A co matrix -1 N/A 1 N_neg i N/A Dy N/A N/A co matrix N/A N/A yp N/A yu N/A yn N/A yn N/A yn N/A yn N/A N/A N/A co setseed 11 N/A Dtrainp N/A N/A N/A co normal 2 N_pos 0.4 N/A Dtrainu N/A N/A N/A co normal 2 N_unl 0.4 N/A Dtrainn N/A N/A N/A co normal 2 N_neg 0.3 N/A Dtrain21 N/A Dtrainn 1 N/A N/A Dtrain21 N/A N/A 0 N/A N/A N/A Dtrainn N/A N/A 0 N/A 1 N/A Dtrain22 N/A Dtrain21 N/A Dtrain N/A N/A co matrix N/A N/A Dtrainp N/A Dtrainu N/A N/A Dtrainn 1.0 N/A N/A Dtrainn 1.0 N/A Dtrain21 N/A Dtrain22 N/A kernel1 N/A N/A Kernel get_kernel Dtrain Dtrain type rbf param 1.0 N/A kernel2 N/A N/A Kernel get_kernel Dtrain Dtrain type rbf param N/A 1.0 50.0 N/A kernel3 N/A N/A Kernel get_kernel Dtrain Dtrain type rbf param N/A 1.0 100.0 N/A kernel4 N/A N/A Kernel get_kernel Dtrain Dtrain type linear N/A ad N/A SSAD N/A Dy 1.0 1.0 N/A 1.0 N/A N_unl 0.05 1.0 N/A ssad N/A MKLWrapper ad N/A kernel1 kernel2 kernel3 kernel4 Dy P_NORM N/A N/A N/A ssad train_dual N/A kernel1 N/A N/A Kernel get_kernel Dtrain N/A Dtrain N/A N/A N/A N/A N/A ssad get_support_dual type rbf param 1.0 N/A kernel2 N/A N/A Kernel get_kernel Dtrain N/A Dtrain N/A N/A N/A N/A N/A ssad get_support_dual type rbf param N/A 1.0 50.0 N/A kernel3 N/A N/A Kernel get_kernel Dtrain N/A Dtrain N/A N/A N/A N/A N/A ssad get_support_dual type rbf param N/A 1.0 100.0 N/A kernel4 N/A N/A Kernel get_kernel Dtrain N/A Dtrain N/A N/A N/A N/A N/A ssad get_support_dual type linear N/A thres N/A N/A N/A np array N/A N/A ssad get_threshold N/A N/A 0 0 N/A pred N/A N/A ssad apply_dual N/A kernel1 kernel2 kernel3 kernel4 N/A pred N/A N/A np array pred N/A pred N/A N/A pred transpose N/A delta 0.1 N/A x N/A N/A np arange -3.0 3.0 delta N/A y N/A N/A np arange -3.0 3.0 delta N/A N/A X Y N/A N/A np meshgrid x y N/A N/A sx sy N/A X shape N/A Xf N/A N/A np reshape X N/A 1 N/A sx sy N/A Yf N/A N/A np reshape Y N/A 1 N/A sx sy N/A Dtest N/A N/A np append Xf Yf axis 0 N/A N/A Dtest shape N/A kernel1 N/A N/A Kernel get_kernel N/A N/A co matrix Dtest N/A Dtrain N/A N/A N/A N/A N/A ssad get_support_dual type rbf param 1.0 N/A kernel2 N/A N/A Kernel get_kernel N/A N/A co matrix Dtest N/A Dtrain N/A N/A N/A N/A N/A ssad get_support_dual type rbf param N/A 1.0 50.0 N/A kernel3 N/A N/A Kernel get_kernel N/A N/A co matrix Dtest N/A Dtrain N/A N/A N/A N/A N/A ssad get_support_dual type rbf param N/A 1.0 100.0 N/A kernel4 N/A N/A Kernel get_kernel N/A N/A co matrix Dtest N/A Dtrain N/A N/A N/A N/A N/A ssad get_support_dual type linear N/A res N/A N/A ssad apply_dual N/A kernel1 kernel2 kernel3 kernel4 N/A Z N/A N/A np reshape res N/A sx sy N/A N/A N/A plt figure N/A N/A N/A plt contourf X Y Z 20 N/A N/A N/A plt contour X Y Z N/A N/A N/A N/A np array N/A N/A ssad get_threshold N/A N/A 0 0 N/A N/A N/A plt scatter N/A Dtrain N/A N/A 0 N/A N/A ssad get_support_dual N/A Dtrain N/A N/A 1 N/A N/A ssad get_support_dual 60 c w N/A N/A N/A plt scatter N/A Dtrain N/A N/A 0 N/A N_pos N/A N/A N_pos N_unl 1 N/A Dtrain N/A N/A 1 N/A N_pos N/A N/A N_pos N_unl 1 10 c g N/A N/A N/A plt scatter N/A Dtrain N/A N/A 0 N/A 0 N_pos N/A Dtrain N/A N/A 1 N/A 0 N_pos 20 c r N/A N/A N/A plt scatter N/A Dtrain N/A N/A 0 N/A N/A N_pos N_unl N/A Dtrain N/A N/A 1 N/A N/A N_pos N_unl 20 c b N/A N/A N/A plt figure N/A N/A N/A plt bar N/A N/A i 1 N/A i N/A range 4 N/A N/A ssad get_mixing_coefficients N/A N/A N/A plt show N/A finished