Module Expr Str Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Num Assign NameStore TupleLoad Num Num Num Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword BinOpDiv Num BinOpMult NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign TupleStore NameStore NameStore NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword Call NameLoad keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
Created on Mon Dec 23 15:00:10 2013

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

@author:  Edouard Duchesnay
@email:   edouard.duchesnay@cea.fr
@license: BSD 3-clause.
 N/A numpy np N/A matplotlib.pyplot plt N/A parsimony.datasets datasets N/A parsimony.functions.nesterov.tv nesterov_tv N/A parsimony.estimators estimators N/A parsimony.utils utils parsimony.utils.penalties l1_max_logistic_loss sklearn.metrics precision_recall_fscore_support sklearn.linear_model LogisticRegression N/A n_samples 500 N/A shape N/A 50 50 1 N/A N/A X3d y beta3d proba N/A N/A N/A N/A datasets classification dice5 load n_samples n_samples shape shape snr 10 random_seed 1 N/A X N/A N/A X3d reshape N/A n_samples N/A N/A np prod N/A beta3d shape N/A n_train 300 N/A Xtr N/A X N/A N/A n_train N/A N/A ytr N/A y N/A n_train N/A Xte N/A X N/A N/A n_train N/A N/A yte N/A y N/A n_train N/A alpha N/A l1_max_logistic_loss Xtr ytr N/A ridge_sklrn N/A LogisticRegression C N/A 1.0 N/A alpha n_train fit_intercept False N/A yte_pred_ridge N/A N/A N/A N/A ridge_sklrn fit Xtr N/A N/A ytr ravel predict Xte N/A N/A _ recall_ridge_sklrn _ _ N/A precision_recall_fscore_support yte yte_pred_ridge average None N/A ridge_prsmy N/A N/A estimators RidgeLogisticRegression alpha N/A yte_pred_ridge_prsmy N/A N/A N/A N/A ridge_prsmy fit Xtr ytr predict Xte N/A N/A _ recall_ridge_prsmy _ _ N/A precision_recall_fscore_support yte yte_pred_ridge_prsmy average None N/A N/A l1 l2 tv N/A alpha N/A N/A np array N/A 0.05 0.75 0.2 N/A A N/A N/A nesterov_tv linear_operator_from_shape N/A beta3d shape N/A enettv N/A N/A estimators LogisticRegressionL1L2TV l1 l2 tv A algorithm_params N/A dict eps 0.001 N/A yte_pred_enettv N/A N/A N/A N/A enettv fit Xtr ytr predict Xte N/A N/A _ recall_enettv _ _ N/A precision_recall_fscore_support yte yte_pred_enettv average None N/A plot N/A N/A plt subplot 221 N/A limits None N/A N/A N/A utils plot_map2d N/A N/A beta3d reshape shape plot title beta star N/A plot N/A N/A plt subplot 222 N/A N/A N/A utils plot_map2d N/A N/A N/A enettv beta reshape shape plot limits limits title N/A L1+L2+TV (%.2f, %.2f) N/A tuple recall_enettv N/A plot N/A N/A plt subplot 223 N/A N/A N/A utils plot_map2d N/A N/A N/A ridge_sklrn coef_ reshape shape plot limits limits title N/A Ridge (sklrn) (%.2f, %.2f) N/A tuple recall_ridge_sklrn N/A plot N/A N/A plt subplot 224 N/A N/A N/A utils plot_map2d N/A N/A N/A ridge_prsmy beta reshape shape plot limits limits title N/A Ridge (Parsimony) (%.2f, %.2f) N/A tuple recall_ridge_prsmy N/A N/A N/A plt show