Module Import alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Str Str Str Str Str Str Str Str Str Str TupleLoad Num Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num Assign NameStore Num Assign NameStore Dict Str Str Str NameLoad NameLoad Str Assign NameStore ListComp TupleLoad Call AttributeLoad Str attr NameLoad NameLoad Call NameLoad Dict Str Str Str Call NameLoad ListLoad Str Str Call NameLoad Call NameLoad Num NameLoad Num Num NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore ListComp Call NameLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return ListComp SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad keyword Num keyword NameLoad Index Num comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice NameLoad Return Call AttributeLoad BinOpMult NameLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad Return ListComp Call NameLoad BinOpDiv BinOpMult Num NameLoad Call AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad UnaryOpUSub NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad CompareNotIn NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore Call NameLoad NameLoad keyword BinOpAdd NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp Call AttributeLoad SubscriptLoad NameLoad Index Num attr SubscriptLoad SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr ListComp Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad For NameStore ListLoad Str Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Print Call AttributeLoad Str attr NameLoad
N/A N/A os N/A numpy np N/A matplotlib.pyplot plt expjobs.job Job multimodal.pairing organize_by_values multimodal.experiment ThreeModalitiesExperiment multimodal.lib.logger Logger multimodal.lib.plot pcolormesh multimodal.lib.metrics mutual_information multimodal.lib.munkres min_weight_perm multimodal.db.choreo2 Choreo2Loader multimodal.db.acorns Year1Loader AcornsLoader multimodal.db.objects ObjectsLoader N/A WORKDIR N/A N/A N/A os path expanduser ~/work/data/results/multimodal N/A SCRIPT3 N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ three_modalities.py N/A DEFAULT_FIG_DEST N/A N/A N/A os path expanduser ~/work/doc/illus/results/multimodal/gen/mutual_info N/A DEFAULT_PLOT_PARAMS N/A font.family font.size font.serif text.usetex text.latex.unicode axes.titlesize axes.labelsize legend.fontsize xtick.labelsize ytick.labelsize path.simplify savefig.bbox figure.figsize serif 9.0 Computer Modern Roman True True large large medium small small True tight N/A 7.5 6 N/A CMAP N/A N/A plt cm Blues N/A K 15 N/A N_RUN 20 N/A DEFAULT_PARAMS N/A debug shuffle_labels run_mode False True single N/A exps N/A N/A N/A N/A image_motion_sound_{}_{} format K i N/A ThreeModalitiesExperiment N/A image motion sound N/A ObjectsLoader N/A SURF color N/A Choreo2Loader N/A AcornsLoader 1 K 50 50 DEFAULT_PARAMS N/A i N/A range N_RUN N/A jobs N/A N/A Job WORKDIR n SCRIPT3 N/A N/A n e exps N/A MOD_PAIRS N/A N/A motion sound N/A image motion N/A image sound N/A EXPS_BY_NAME N/A dict exps N/A JOBS_BY_NAME N/A dict N/A N/A j name j N/A j jobs internal_histograms_by_label N/A N/A internal_values by_labels_idx N/A N/A N/A Compute a histogram of coefficient values for the group of samples
    corresponding to each label.
     N/A value_range N/A N/A N/A internal_values min N/A N/A internal_values max N/A N/A N/A N/A N/A np histogram N/A internal_values N/A idx bins 10 range value_range N/A 0 N/A idx by_labels_idx N/A _sum_all_but_i N/A N/A a i N/A N/A N/A a N/A N/A np array a N/A mask N/A N/A np ones N/A a shape dtype N/A np bool N/A N/A mask N/A N/A i N/A False N/A N/A N/A N/A a mask sum axis 0 N/A mutual_information_by_label N/A N/A internal_values by_labels_idx N/A N/A N/A Compute information matrix for the joint distribution
    over the internal coefficient values and the presence of the label,
    for each label.
     N/A hists N/A internal_histograms_by_label internal_values by_label N/A joint_hists N/A N/A N/A np vstack N/A N/A hists N/A i N/A _sum_all_but_i hists i N/A i N/A range N/A len hists N/A N/A N/A mutual_information N/A N/A 1.0 h N/A N/A h sum N/A h joint_hists N/A plot_mutual_info N/A N/A m labels N/A N/A N/A perm N/A min_weight_perm N/A m N/A not_in_perm N/A i N/A i N/A range K N/A i perm N/A permuted_m N/A N/A np hstack N/A N/A m N/A N/A N/A perm N/A m N/A N/A N/A not_in_perm N/A p N/A pcolormesh permuted_m xticklabels N/A perm not_in_perm yticklabels labels cmap CMAP N/A cb N/A N/A plt colorbar p drawedges False N/A N/A N/A N/A cb outline set_visible False N/A N/A mutual_information_matrices N/A N/A plots N/A N/A N/A exp_idx N/A name exp N/A enumerate exps N/A N/A N/A N/A exp logger filename None N/A job N/A JOBS_BY_NAME N/A name N/A logger N/A N/A Logger load N/A N/A N/A os path join N/A job path N/A job name N/A raw_labels N/A N/A exp _get_raw_labels N/A label_assoc N/A N/A logger get_value label-pairing N/A sample_assoc N/A N/A logger get_value sample-pairing N/A labels N/A N/A N/A N/A label_assoc N/A 0 index N/A N/A raw_labels N/A 0 N/A N/A a N/A 0 N/A a sample_assoc N/A N/A N/A exp _set_labels_and_prepare_data label_assoc labels sample_assoc N/A N/A N/A exp _set_data_and_labels_for_examples N/A N/A logger get_value examples N/A labels N/A exp labels N/A learner N/A N/A exp _get_new_learner N/A N/A learner dico N/A N/A logger get_last_value dictionary N/A data N/A exp data N/A Re-computing internal coefficients... N/A internal N/A N/A learner reconstruct_internal_multi N/A exp modalities data N/A exp iter_test N/A n_labels N/A len N/A label_assoc N/A 0 N/A by_label N/A organize_by_values labels nb_values n_labels N/A N/A N/A mutual_information_matrices append N/A N/A N/A np array N/A N/A mutual_information_by_label N/A internal N/A N/A N/A i by_label N/A i N/A range K T N/A N/A N/A plt rc_context rc DEFAULT_PLOT_PARAMS N/A N/A N/A N/A plt interactive False N/A fig N/A N/A plt figure N/A sound_labels N/A label_assoc N/A N/A N/A N/A exp modalities index sound N/A N/A plot_mutual_info N/A mutual_information_matrices N/A -1 sound_labels N/A ext N/A svg pdf eps N/A N/A path N/A N/A N/A os path join DEFAULT_FIG_DEST N/A N/A mutual_info_{}.{} format exp_idx ext N/A N/A N/A fig savefig path transparent True N/A N/A N/A Written: {}. format path