Bayesian active sensing
Matlab Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
analysis final
analysis
cfile
correlation-shuffle
data
exp-setup
im
refactored
test stimuli
validate
KLDiv.m
a_AllTrial_Likelihood.m
a_AllTrial_SoftLikLapse.m
a_BALDscore.m
a_Combine_Data.m
a_DIM.m
a_DImgVSRev.m
a_DRevNum.m
a_DimageID.m
a_DrevealNumber.m
a_Dtrials.m
a_ErrorShade.m
a_GaussFilter.m
a_GenGPimage.m
a_GetBALDGM_mex.c
a_GetBALDGM_mex.mexw64
a_GetMaxEnt_mex.c
a_GetMaxEnt_mex.mexw64
a_Get_AnswerReal.m
a_Get_BALD.m
a_Get_BALDmap_window.m
a_Get_BALDmap_window_xs.m
a_Get_BALDnoisy.m
a_Get_BALDscoreProp.m
a_Get_Human_Perf.m
a_Get_ImageID.m
a_Get_Model_Perf.m
a_Get_PL_of_RevealType.m
a_Get_RevealMap.m
a_Get_RevealMap_mod.m
a_Get_RevealMap_mod2.m
a_Get_RevealNumber.m
a_ImID_RevN_RevPos_BALD_antiBALD.m
a_ImID_RevN_RevPos_Rand.m
a_Model.m
a_Model_2014-02-10.m
a_PL_BalanceType.m
a_RevN_Rand.m
a_analysis_subject.m
a_exp_setup.m
a_figure_template.m
a_isoperiR.m
a_optimize_likelihood.m
a_plot_trial.m
a_simulate_BAS.m
a_validate_perception_model.m
license.rtf
list.m
readme.md
startup.m

readme.md

Code for Active sensing in the categorization of visual patterns

Note

  • These code may be incomplete, as they are extracted from a bigger directory.
  • Only the first layer of directory structure is kept (for now).
  • Only matlab/c functions are kept (no data, fig, etc. for now).
  • The folder correlation-shuffle contains the latest correlation analysis.
  • The folder exp-setup contains some of the earliest code for setting up the experiment.

The Bayesian active sensing core

  • a_Get_BALDscoreProp.m computes the BAS score map. Among other functions, it calls a_Model.m and a_GetBALDGM_mex.c.
  • a_Model.m computes type posteriors, gradients of parameters, and other stuff.
  • a_GetBALDGM_mex.c computes the BAS score of individual location.

Making Figure 3A in the paper (testing)

  • Run BAS/analysis final/simu_BASs.m.
    • Comment out lines 65-66. Uncomment lines 47, 49-50.
    • No input needed. Output is SIM.
  • Run BAS/analysis final/revmap_sim.m.
    • Comment out lines 138-139, 142-172, 212. Uncomment lines 107-135, 210.
    • DRemovePhase(D) is introduced during the review process.
    • Input is SIM. Outputs are [REV, RrevMap, RdrevMap].
  • Run BAS/analysis final/plot_rev_maps.m.
    • Inputs are RrevMap, RdrevMap. Output is Figure 3A.