Module Expr Str Import alias identifier ClassDef bases body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Num Num Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMult BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Num Num TryExcept body Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Num NameLoad NameLoad Num Num Num Num NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Print Call AttributeLoad NameLoad attr
N/A N/A 
Created on Mon Dec 16 12:21:44 2013

Copyright (c) 2013-2014, CEA/DSV/I2BM/Neurospin. All rights reserved.

@author:  Jinpeng Li
@email:   jinpeng.li@cea.fr
@license: BSD 3-clause.
 N/A numpy np SpamsGenerator N/A N/A get_x_y_estimated_beta N/A N/A self N/A N/A N/A 
        Reference:
        ---------
        http://spams-devel.gforge.inria.fr/doc-python/html/doc_spams006.html#toc23
         N/A shape N/A 4 4 1 N/A num_samples 10 N/A coefficient 0.05 N/A num_ft N/A N/A N/A shape N/A 0 N/A shape N/A 1 N/A shape N/A 2 N/A X N/A N/A N/A np random random N/A num_samples num_ft N/A beta N/A N/A N/A np random random N/A num_ft 1 N/A y N/A N/A N/A np dot X beta N/A N/A N/A N/A np random random N/A num_samples 1 0.0001 N/A N/A N/A spams N/A X N/A N/A np asfortranarray X N/A X N/A N/A np asfortranarray N/A X N/A N/A np tile N/A N/A np mean X 0 N/A N/A N/A X shape N/A 0 1 N/A X N/A N/A spams normalize X N/A y N/A N/A np asfortranarray y N/A y N/A N/A np asfortranarray N/A y N/A N/A np tile N/A N/A np mean y 0 N/A N/A N/A y shape N/A 0 1 N/A y N/A N/A spams normalize y N/A weight0 N/A N/A np zeros N/A N/A N/A X shape N/A 1 N/A N/A y shape N/A 1 dtype N/A np float64 order FORTRAN N/A param N/A numThreads verbose lambda1 it0 max_it L0 tol intercept pos 1 True coefficient 10 200 0.1 0.001 False False N/A N/A param N/A compute_gram True N/A N/A param N/A loss square N/A N/A param N/A regul l2 N/A N/A weight_ridge optim_info N/A N/A spams fistaFlat y X weight0 True param N/A N/A param N/A regul l1 N/A N/A weight_l1 optim_info N/A N/A spams fistaFlat y X weight0 True param N/A N/A N/A ImportError N/A N/A Cannot import spams. Default values will be used. N/A X N/A N/A np asarray N/A N/A 0.26856766 0.30620391 0.26995615 0.3806023 0.41311465 -0.24685479 0.34108499 -0.22786788 -0.2267594 0.30325884 -0.00382229 0.3503643 0.21786749 -0.15275043 -0.24074157 -0.25639825 N/A -0.14305316 -0.19553497 0.45250255 -0.17317269 -0.00304901 0.43838073 0.01606735 0.09267714 0.47763275 0.23234948 0.38694597 0.72591941 0.21028899 0.42317021 0.276003 0.42198486 N/A -0.08738645 0.10795947 0.45813373 -0.34232048 0.43621128 -0.36984753 0.16555311 0.55188325 -0.48169657 -0.52844883 0.15140672 0.06074575 -0.36873621 0.23679974 0.47195386 -0.09728514 N/A 0.16461237 0.30299873 -0.32108348 -0.53918274 0.02287831 0.01105383 -0.11124968 0.18629018 0.30017151 -0.04217922 -0.46066699 -0.33612491 -0.52611772 -0.25397362 -0.27198468 -0.42883518 N/A 0.4710195 0.35047152 -0.07990029 0.34911632 0.07206932 -0.20270895 -0.0684226 -0.18958745 -0.08433092 0.14453963 0.28095469 -0.35894296 0.11680455 -0.37598039 -0.28331446 -0.00825299 N/A -0.420528 -0.74469306 0.22732681 0.34362884 0.16006124 -0.29691759 0.27029047 -0.31077084 -0.048071 0.36495065 0.49364453 -0.16903801 0.07577839 -0.36492748 0.09448284 -0.37055486 N/A 0.4232946 -0.26373387 -0.01430445 -0.2353587 -0.5005603 -0.35899458 0.32702596 -0.38311949 0.31862621 -0.31931012 -0.41836583 -0.02855145 -0.50315227 -0.34807958 -0.05252361 0.11551424 N/A -0.28443208 0.07677476 -0.23720305 0.11056299 -0.48742565 0.36772457 -0.56074202 0.3145033 -0.22811763 0.36482173 -0.01786535 -0.02929555 0.35635411 0.45838473 0.45853286 0.00159594 N/A -0.45779277 0.10020579 -0.30873257 0.28114072 0.18120182 0.33333004 0.17928387 0.31572323 0.32902088 -0.10396976 -0.33296829 0.05277326 0.27139148 0.18653329 0.06068255 -0.01942451 N/A 0.06569833 -0.04065228 -0.44669538 -0.17501657 -0.29450165 0.32483427 -0.55889145 -0.34973144 -0.35647584 -0.41601239 -0.07926316 -0.26784983 0.14952119 0.19082353 -0.51309079 0.6416559 N/A y N/A N/A np asarray N/A N/A 0.15809895 N/A 0.69496971 N/A 0.01214928 N/A -0.39826324 N/A -0.01682498 N/A -0.03372654 N/A -0.45148804 N/A 0.21735376 N/A 0.08795349 N/A -0.27022239 N/A weight_ridge N/A N/A np asarray N/A N/A 0.038558 N/A 0.12605106 N/A 0.19115798 N/A 0.07187217 N/A 0.09472713 N/A 0.14943554 N/A -0.01968095 N/A 0.11695959 N/A 0.15049031 N/A 0.18930644 N/A 0.26086626 N/A 0.23243305 N/A 0.17425178 N/A 0.13200238 N/A 0.11710994 N/A 0.11272092 N/A weight_l1 N/A N/A np asarray N/A N/A 0.0 N/A 0.02664519 N/A 0.0 N/A 0.0 N/A 0.0 N/A 0.10357106 N/A 0.0 N/A 0.2103012 N/A 0.00399881 N/A 0.10815184 N/A 0.32221254 N/A 0.49350083 N/A 0.21351531 N/A 0.0 N/A 0.0 N/A 0.0 N/A ret_data N/A N/A N/A ret_data N/A X X N/A N/A ret_data N/A y y N/A N/A ret_data N/A weight_ridge weight_ridge N/A N/A ret_data N/A weight_l1 weight_l1 N/A N/A ret_data N/A coefficient coefficient N/A N/A ret_data N/A shape shape N/A N/A ret_data N/A num_samples num_samples N/A N/A ret_data N/A num_ft num_ft N/A ret_data N/A N/A N/A N/A __name__ __main__ N/A N/A spams_generator N/A SpamsGenerator N/A N/A N/A spams_generator get_x_y_estimated_beta