# HGF Toolbox
Release ID: $Format:%h %d$
---
Copyright (C) 2012-2022 Christoph Mathys <chmathys@ethz.ch>
Translational Neuromodeling Unit (TNU)
University of Zurich and ETH Zurich
---
The HGF toolbox is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program (see the file COPYING). If not, see
<http://www.gnu.org/licenses/>.
---
## How to cite the HGF Toolbox
Please cite the following paper when using the HGF Toolbox:
Frässle, S., et al. (2021). TAPAS: An Open-Source Software Package for
Translational Neuromodeling and Computational Psychiatry. Frontiers in
Psychiatry, 12:680811. https://doi.org/10.3389/fpsyt.2021.680811
## Installation
Move this folder to a location of your choice and add it to your Matlab
path.
## Documentation and configuration
Documentation can be found in the manual contained in the Manual.pdf
file. This will point you to the relevant configuration files. Further
documentation is available throughout the source code.
## Tutorial demo
There is a Matlab LiveScript tutorial demo that can be launched by
opening hgf_demo.mlx in Matlab. A PDF version is available in
hgf_demo.pdf.
## Release notes
### v7.1
- Add ehgf_ar1_plotTraj
- Bugfix
### v7.0
- Numerical stability improvements to optimization
- Combined response models (more than one observation per trial)
- Various bugfixes and minor improvements
### v6.1
- Improved functionality of beta_obs response model
- Included reference to TAPAS paper
### v6.0
- Introduced first eHGF models (ehgf, ehgf_binary, ehgf_jget)
- Enabled calling fitModel with config structures as arguments
- Enabled changing config structures on the fly
- Introduced sampleModel for sampling from the prior
- Various other additions, improvements, and bugfixes
### v5.3
- Enabled setting and storing of seed for random number generator in simulations
- Debugged reading of response model configuration in simModel
- Reduced default maxStep from 2 to 1 in quasinewton_oqptim_config
- Improved readability of siem files for unitsq_sgm and softmax_binary
- Added simulation capability for softmax_wld and softmax_mu3_wld
- Added softmax_wld response model
- Improved readability of softmax_mu3_wld code
- Improved readability of softmax and softmax_mu3 code
### v5.2
- Brought hgf_demo.pdf up to date
- Added gaussian_obs_offset response model
- Brought example in simModel up to date
- Added sim and namep files for unitsq_sgm_mu3
- Fixed typo in softmax_mu3_wld
- Introduced softmax_mu3_wld decision model
- Estimate mu0_2 by default in hgf_ar1_binary_mab
- Improved comment in softmax_mu3_config
- Change to pi_2 update in hgf_ar1_binary_mab
- Enabled simulation for hgf_ar1_binary_mab
- Added softmax_mu3
- Added hgf_ar1_binary_mab
- Fixed automatic detection of number of levels in hgf_ar1_binary
- Fixed documentation of hgf_ar1_binary
- Fixed hgf_binary_mab_plotTraj
- Fixed trajectory calculations in hgf_binary_mab
- Adapted riddersgradient and riddershessian to new Matlab versions
- Quashed bug in rw_binary_dual found by gbelluc@gmail.com
### v5.1
- Added condhalluc_obs and condhalluc_obs2 models
- Introduced kappa1 in all binary HGF models
### v5.0
- Ported interactive demo to Matlab LiveScript
- Various additional small improvements
- Updated manual
- Updated and renamed README to README.md
### v4.17
- Improvements to logrt_linear_binary_minimal
### v4.16
- Added the binary HGF with trial-by-trial perceptual uncertainty as hgf_binary_pu_tbt
### v4.15
- Added the Kalman filter as kf
### v4.14
- Improved the beta_obs model
- Improved calculation of implied 1st-level learning rate
### v4.13
- Corrected sign of update trajectories
- Added option to base responses on predictions or posteriors in
the beta_obs model
### v4.12
- Added tapas_autocorr.m
### v4.11
- Predictions and residuals returned by all observations models
- Added tapas_fit_plotResidualDiagnostics()
### v4.10
- Added hgf_categorical_norm
- Added Boltzmann distribution (i.e., softmax normalization) as tapas_boltzmann()
### v4.9
- Set implied learning rate at first level to 0 if update is zero
### v4.8
- Give choice of using predictions or posteriors with softmax_binary
### v4.7
- Added cdfgaussian_obs model
- Added hgf_binary_pu (perceptual uncertainty) model
- Improvements for beta_obs with hgf_whichworld
### v4.6
- Adapted beta_obs to deal with ph_binary
- Added Pearce-Hall in ph_binary
- Clarified the role of default settings in comments of fitModel
- Brought softmax_binary_sim up to date
### v4.5
- Improved comments in softmax_binary_sim
- Improved comments in tapas_beta_obs.m
- Added tapas_beta_obs_{sim,namep}.m
### v4.4
- Added tapas_hgf_ar1_binary_namep.m
- Improved rw_binary
### v4.3
- Added bayes_optimal_categorical
- Improved hgf_categorical_plotTraj
### v4.2
- Adapted softmax_sim to hgf_categorical
- Added hgf_categorical
- Added datagen_categorical and categorical data example
### v4.1
- Improved hgf_jget
### v4.0
- Added PDF manual
- Added interactive demo in hgf_demo
- Added file of raw commands from hgf_demo in hgf_demo_commands
- Adapted fitModel to calculate AIC and BIC
- Renamed F (negative variational free energy) to LME (log-model evidence, to
which it is an approximation)
- Calculate accuracy and complexity in fitModel
- Save everything relating to model quality under r.optim
- Improved output of fitModel
- Added hierarchical hidden Markov model (hhmm)
- Added hidden Markov model (hmm)
- Added WhatWorld (hgf_whatworld) model
- Added linear log-reaction time (logrt_linear_whatworld) model for WhatWorld
- Added WhichWorld (hgf_whichworld) model
- Added AR(1) model for binary outcomes (hgf_ar1_binary)
- Added Jumping Gaussian Estimation (hgf_jget) model
- Added unitsq_sgm_mu3 decision model
- Added binary multi-armed bandit model hgf_binary_mab
- Added beta_obs observation model for decision noise on the unit interval
- Added softmax decision model with different inverse temperature for each
kind of binary decision (softmax_2beta)
- Added logrt_linear_binary decision model
- Added Rescorla-Wagner model with different learning rate for each kind of
binary outcome (rw_binary_dual)
- Included additional trajectories in output of hgf, hgf_ar1, hgf_ar1_mab,
hgf_binary, hgf_ar1_binary, hgf_binary_mab, hgf_whichworld, and
hgf_whatworld
- Made infStates more consistent across models
- Removed deprecated hgf_binary3l
- Made fitModel explicitly return negative log-joint probability and negative
log-likelihood
- Modified simModel to read configuration files of perceptual and observation
models
- Abolished theta in hgf, hgf_binary, hgf_ar1, hgf_ar1_mab, hgf_ar1_binary,
hgf_binary_mab, and hgf_jget
- Moved kappa estimation from logit-space to log-space for hgf, hgf_binary,
hgf_ar1, hgf_ar1_mab, hgf_ar1_binary, hgf_binary_mab, and hgf_jget
- Introduced checking for implausible jumps in trajectories for hgf,
hgf_binary, hgf_ar1, hgf_ar1_mab, hgf_ar1_binary, hgf_binary_mab, and
hgf_jget
- Adapted fitModel to deal with cases the <prc_model>_transp() function
performs operations important to the <model>() function
- Introduced multinomial softmax decision model
- Improved documentation for hgf_ar1_mab model
- Added error IDs for all errors
### v3.0
- Improved error handling in tapas_fitModel()
- Prefixed all function names with “tapas_”
- Added rs_precision
- Added rs_belief
- Added rs_surprise
- Added sutton_k1
- Added hgf_ar1_mab
- Added softmax for continuous responses
- Improved checking of trajectory vali
没有合适的资源?快使用搜索试试~ 我知道了~
面向任务的分层高斯滤波模型matlab代码.rar
共314个文件
m:287个
mat:9个
asv:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 36 浏览量
2024-10-09
18:36:00
上传
评论
收藏 5.24MB RAR 举报
温馨提示
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论
收起资源包目录
面向任务的分层高斯滤波模型matlab代码.rar (314个子文件)
HGF_wrapper.asv 10KB
tapas_ehgf_binary.asv 7KB
get_responses.asv 4KB
plot_bandit_gradient_faces.asv 2KB
COPYING 34KB
tapas_fitModel_actprob.m 24KB
tapas_fitModel.m 24KB
hgf_demo.m 20KB
HGF_wrapper.m 11KB
tapas_hgf_ar1_binary_mab.m 10KB
tapas_hgf_demo.m 10KB
tapas_hgf_binary_mab.m 10KB
tapas_hgf_jget.m 10KB
faces_inversion_RL.m 10KB
tapas_hgf_ar1_binary_mab_config.m 9KB
tapas_ehgf_jget.m 9KB
tapas_simModel.m 9KB
tapas_hgf_ar1_mab_config.m 9KB
tapas_hgf_ar1_binary_config.m 9KB
tapas_hgf_binary_pu_tbt_config.m 9KB
tapas_ehgf_binary_pu_config.m 9KB
tapas_hgf_binary_pu_config.m 9KB
tapas_hgf_binary_mab_config.m 9KB
tapas_hgf_ar1_config.m 9KB
Associ_fit_faces.m 9KB
tapas_hgf_whatworld_config.m 9KB
tapas_ehgf_jget_plotTraj.m 8KB
tapas_hgf_jget_plotTraj.m 8KB
tapas_ehgf_ar1_binary_config.m 8KB
tapas_hgf_binary_config.m 8KB
tapas_hgf_binary_pu_tbt.m 8KB
tapas_hgf_binary_pu.m 8KB
tapas_hgf_ar1_mab.m 8KB
tapas_hgf_categorical_norm_config.m 8KB
tapas_hgf_categorical_config.m 8KB
tapas_hgf_config.m 8KB
tapas_hgf_ar1_binary.m 8KB
tapas_ehgf_binary_config.m 8KB
tapas_hgf_whatworld.m 8KB
tapas_hgf_binary.m 8KB
tapas_ehgf_binary_pu.m 8KB
tapas_hgf_jget_config.m 8KB
tapas_hgf_whichworld_config.m 7KB
tapas_ehgf_config.m 7KB
tapas_ehgf_ar1_binary.m 7KB
tapas_ehgf_binary.m 7KB
tapas_hgf_ar1.m 7KB
tapas_quasinewton_optim.m 7KB
tapas_hgf.m 7KB
tapas_ehgf_jget_config.m 7KB
tapas_hhmm.m 7KB
tapas_hgf_whichworld.m 7KB
tapas_hgf_categorical_norm.m 7KB
tapas_hgf_categorical.m 7KB
tapas_ehgf.m 7KB
assoc_model.m 6KB
tapas_bayesian_parameter_average.m 6KB
associability_model.m 6KB
tapas_sampleModel.m 6KB
tapas_hhmm_config.m 5KB
RW_model.m 5KB
RW_model_extended.m 5KB
tapas_hgf_binary_mab_plotTraj.m 5KB
tapas_hgf_ar1_binary_mab_plotTraj.m 5KB
tapas_hgf_whichworld_plotTraj.m 5KB
tapas_hgf_categorical_plotTraj.m 5KB
tapas_kf_config.m 4KB
tapas_hgf_binary_condhalluc_plotTraj.m 4KB
tapas_ehgf_ar1_binary_plotTraj.m 4KB
tapas_hgf_ar1_binary_plotTraj.m 4KB
tapas_ehgf_binary_plotTraj.m 4KB
tapas_hgf_binary_plotTraj.m 4KB
get_responses.m 4KB
tapas_riddersdiffcross.m 4KB
tapas_condhalluc_obs_config.m 4KB
tapas_ehgf_plotTraj.m 4KB
tapas_hgf_plotTraj.m 4KB
tapas_riddersdiff2.m 4KB
tapas_hgf_ar1_plotTraj.m 4KB
tapas_riddersdiff.m 4KB
tapas_hgf_ar1_mab_plotTraj.m 4KB
tapas_ph_binary_config.m 4KB
tapas_riddershessian.m 4KB
tapas_sutton_k1_binary_config.m 3KB
tapas_rw_binary_dual_config.m 3KB
tapas_hgf_whatworld_plotTraj.m 3KB
tapas_rw_binary_config.m 3KB
tapas_riddersgradient.m 3KB
grid_search.m 3KB
tapas_hhmm_binary_displayResults.m 3KB
tapas_logrt_linear_whatworld.m 3KB
tapas_softmax_binary_config.m 3KB
tapas_hgf_demo_commands.m 3KB
tapas_softmax_mu3_wld.m 3KB
tapas_logrt_linear_binary.m 3KB
tapas_unitsq_sgm_config.m 3KB
tapas_softmax_wld.m 3KB
tapas_sutton_k1_binary.m 3KB
tapas_hmm.m 3KB
tapas_rw_binary_dual.m 2KB
共 314 条
- 1
- 2
- 3
- 4
资源评论
天天Matlab代码科研顾问
- 粉丝: 3w+
- 资源: 2297
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Yolo(实时物体检测)模型训练教程,基于深度学习神经网络.zip
- 网络爬虫基础 & HTML解析基础-课件
- Java基础语法与高级特性的全面讲解
- YOLO(You Only Look Once)的 Keras 实现统一的实时对象检测.zip
- YOLO(You Only Look Once)物体检测机制在 Tensorflow 中的实现.zip
- H3m-Blog项目源代码文件
- YOLO系列资料.zip
- 基于DQN算法的迷宫寻宝路径规划.docx,内附核心源码
- 1_第十六届蓝桥杯大赛软件赛,电子赛竞赛规则及说明.zip
- yolo模型使用cv2推理并使用qt5添加GUI后备份部署 pt模型转onnx模型opencv.dnn完成推理pyqt实现可视界面备份为exe方便移植.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功