Module Expr Str Import alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr DictComp Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr DictComp Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Delete SubscriptDel NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str NameLoad attr Str ListLoad Assign NameStore Call NameLoad keyword NameLoad orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpDiv AttributeLoad NameLoad attr Call NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr BinOpSub Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr UnaryOpUSub NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num If CompareIsNot NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Delete NameDel Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str AttributeLoad NameLoad attr NameLoad Dict Str NameLoad attr Str ListLoad Assign NameStore Call NameLoad keyword NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpAdd Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareLt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return NameLoad orelse Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad BinOpDiv Num BinOpAdd NameLoad BinOpDiv Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad AttributeLoad NameLoad attr body Delete NameDel Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num orelse If CompareLt AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num orelse Assign TupleStore NameStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A 
Created on Fri Nov 08 19:52:40 2013
The binary or linear optimizer that is the basic building block for 
solving machine learning problems
@author: xm
 N/A base crane constants EPS monk.math.svm_solver_dual SVMDual monk.math.flexible_vector FlexibleVector bson.objectid ObjectId monk.utils.utils metricValue metricAbs metricRelAbs N/A logging N/A logger N/A N/A logging getLogger monk.mantis Mantis N/A N/A base MONKObject N/A N/A FEPS eps N/A FGAMMA gamma N/A FRHO rho N/A FPANDA panda N/A FDATA data N/A FDUALS mu N/A FQ q N/A FDQ dq N/A FMAX_NUM_ITERS maxNumIters N/A FMAX_NUM_INSTANCES maxNumInstances N/A store N/A crane mantisStore __default__ N/A N/A self N/A N/A N/A N/A N/A N/A super Mantis self __default__ N/A N/A self eps 0.0001 N/A N/A self gamma 1 N/A N/A self rho 1 N/A N/A self maxNumIters 1000 N/A N/A self maxNumInstances 1000 N/A N/A self panda None N/A N/A self data N/A N/A N/A self mu N/A N/A N/A self q N/A N/A N/A self dq N/A N/A __restore__ N/A N/A self N/A N/A N/A N/A N/A N/A super Mantis self __restore__ N/A N/A self solver None N/A N/A N/A N/A self mu N/A FlexibleVector generic N/A self mu N/A N/A self q N/A FlexibleVector generic N/A self q N/A N/A self dq N/A FlexibleVector generic N/A self dq N/A N/A self data N/A N/A ObjectId k v N/A N/A k v N/A N/A N/A self data iteritems N/A True N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger error N/A N/A error {0} format N/A e message N/A N/A N/A logger error N/A N/A can not create a solver for {0} format N/A N/A self panda name N/A False N/A initialize N/A N/A self panda N/A N/A N/A N/A self panda panda N/A N/A self solver N/A SVMDual N/A N/A self panda weights N/A self eps N/A self rho N/A self gamma N/A self maxNumIters N/A self maxNumInstances N/A ents N/A N/A N/A crane entityStore load_all_by_ids N/A N/A N/A self data keys N/A ent ents N/A N/A N/A index y c N/A N/A self data N/A N/A ent _id N/A N/A N/A N/A self solver setData N/A ent _features y c index N/A N/A N/A self solver num_instances N/A len ents N/A keys N/A N/A N/A N/A self panda weights getKeys N/A N/A N/A N/A self q addKeys keys N/A N/A N/A N/A self dq addKeys keys N/A generic N/A N/A self N/A N/A N/A result N/A N/A N/A super Mantis self generic N/A N/A result N/A N/A self FPANDA N/A N/A self panda _id N/A N/A result N/A N/A self FDUALS N/A N/A N/A self mu generic N/A N/A result N/A N/A self FQ N/A N/A N/A self q generic N/A N/A result N/A N/A self FDQ N/A N/A N/A self dq generic N/A N/A result N/A N/A self FDATA N/A N/A str k v N/A N/A k v N/A N/A N/A self data iteritems N/A N/A N/A N/A result N/A solver N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger warning N/A N/A deleting solver failed {0} format N/A e message N/A result N/A clone N/A N/A self userName panda N/A N/A N/A obj N/A N/A N/A super Mantis self clone userName N/A N/A obj mu N/A FlexibleVector N/A N/A obj dq N/A FlexibleVector N/A N/A obj q N/A N/A N/A N/A self panda z clone N/A N/A obj panda panda N/A N/A obj solver N/A SVMDual N/A panda weights N/A self eps N/A self rho N/A self gamma N/A self maxNumIters N/A self maxNumInstances N/A N/A obj data N/A N/A obj N/A train N/A N/A self leader N/A N/A N/A N/A N/A self data N/A N/A N/A N/A logger debug no data, skip training N/A N/A N/A N/A logger debug N/A N/A gamma in mantis {0} format N/A self gamma N/A leader N/A N/A z N/A N/A N/A N/A N/A crane pandaStore load_one N/A name creator N/A N/A self panda name leader N/A z True get z N/A N/A z N/A FlexibleVector generic z N/A N/A z N/A N/A self panda z N/A N/A z None N/A N/A N/A N/A logger debug no consensus checked out N/A N/A N/A metricRelAbs self z~q N/A self q z N/A N/A N/A N/A self dq clear N/A N/A N/A N/A self dq add N/A self mu -1 N/A N/A N/A N/A self mu add N/A self q 1 N/A N/A N/A N/A self mu add z -1 N/A N/A N/A N/A self dq add N/A self mu 1 N/A N/A metricAbs self mu N/A self mu N/A N/A N/A N/A self solver setModel0 z N/A self mu N/A N/A N/A N/A self solver trainModel N/A loss N/A N/A N/A self solver status N/A N/A metricValue self loss loss N/A N/A metricValue self x N/A N/A N/A self solver maxxnorm N/A r N/A N/A self rho N/A float N/A N/A self rho N/A self gamma N/A N/A N/A N/A self dq add N/A self q -1 N/A N/A N/A N/A self q clear N/A N/A N/A N/A self q add z r N/A N/A N/A N/A self q add N/A N/A self panda weights N/A 1 r N/A N/A N/A N/A self q add N/A self mu N/A r N/A N/A N/A N/A self dq add N/A self q 1 N/A N/A z N/A N/A self panda z N/A N/A z N/A N/A N/A logger debug N/A N/A q = {0} format N/A self q N/A N/A N/A logger debug N/A N/A w = {0} format N/A N/A self panda weights N/A N/A metricRelAbs self q~w N/A self q N/A N/A self panda weights N/A N/A N/A N/A self panda update_fields N/A N/A N/A self panda FWEIGHTS N/A N/A N/A N/A self panda weights generic N/A N/A N/A self commit N/A checkout N/A N/A self leader N/A N/A N/A N/A merge N/A N/A self follower m N/A N/A N/A N/A follower N/A self creator N/A N/A fdq N/A N/A N/A N/A N/A crane mantisStore load_one N/A name creator N/A self name follower N/A dq True get dq N/A N/A fdq N/A FlexibleVector generic fdq N/A N/A fdq N/A self dq N/A rd N/A N/A N/A N/A fdq norm EPS N/A N/A N/A N/A N/A self panda z norm EPS N/A N/A rd N/A self eps N/A N/A N/A N/A logger debug Converged, no need to merge N/A False N/A N/A N/A N/A N/A N/A self panda z add fdq N/A 1.0 N/A m N/A 1 N/A self rho N/A N/A N/A logger debug N/A N/A m = {0} format m N/A N/A N/A logger debug N/A N/A update z {0} format N/A N/A self panda z N/A N/A N/A logger debug N/A N/A relative difference of z {0} format rd N/A N/A metricValue self rz rd N/A N/A fdq N/A self dq N/A N/A fdq N/A True N/A commit N/A N/A self N/A N/A N/A N/A N/A self update_fields N/A N/A self FDUALS N/A self FQ N/A self FDQ N/A N/A N/A self mu generic N/A N/A N/A self q generic N/A N/A N/A self dq generic N/A add_data N/A N/A self entity y c N/A N/A N/A da N/A self data N/A uuid N/A entity _id N/A N/A uuid da N/A N/A ind N/A N/A da N/A uuid N/A 0 N/A N/A N/A N/A N/A self solver num_instances N/A self maxNumInstances N/A N/A ind N/A N/A self solver num_instances N/A N/A N/A self solver num_instances N/A ind 1 N/A N/A N/A olduuid N/A ind oldy oldc N/A N/A da popitem N/A N/A N/A N/A self solver setData N/A entity _features y c ind N/A N/A da N/A uuid N/A ind y c N/A reset N/A N/A self N/A N/A N/A N/A N/A N/A self mu clear N/A N/A N/A N/A self q clear N/A N/A N/A N/A self dq clear N/A N/A N/A logger debug N/A N/A mu {0} format N/A self mu N/A N/A N/A logger debug N/A N/A q  {0} format N/A self q N/A N/A N/A logger debug N/A N/A dq {0} format N/A self dq N/A N/A N/A self commit N/A N/A N/A N/A self solver initialize N/A reset_data N/A N/A self N/A N/A N/A N/A self data N/A N/A N/A N/A self solver num_instances 0 N/A N/A N/A logger debug N/A N/A data {0} format N/A self data N/A N/A N/A self update_fields N/A N/A self FDATA N/A N/A set_mantis_parameter N/A N/A self para value N/A N/A N/A N/A para gamma N/A N/A N/A self gamma value N/A N/A N/A N/A self solver setGamma value N/A N/A N/A logger debug N/A N/A gamma is {0} format N/A self gamma N/A N/A N/A logger debug N/A N/A gamma of solver is {0} format N/A N/A self solver gamma N/A N/A N/A self update_fields N/A N/A self FGAMMA N/A self gamma N/A N/A N/A N/A N/A base register Mantis