项目作者: itsdfish

项目描述 :
A collection of sequential sampling models based on the Distributions.jl API
高级语言: Julia
项目地址: git://github.com/itsdfish/SequentialSamplingModels.jl.git
创建时间: 2020-12-10T15:53:20Z
项目社区:https://github.com/itsdfish/SequentialSamplingModels.jl

开源协议:MIT License

下载


CI CodeCov

SequentialSamplingModels

This package provides a unified interface for simulating and evaluating sequential sampling models (SSMs) in Julia. SSMs describe decision making as a stochastic and dynamic evidence accumulation process in which a decision is triggered by the option whose evidence hits a decision treshold first.

Feature Overview

A summary of the core features is provided below. Please see the documentation for more information.

Supported Models

The following SSMs are supported:

Single Choice Models

Multi-Choice Models

Single Attribute

Multi-Attribute

Alternative Geometries

API

The core API consists of the following

  • rand: generate simulated data
  • pdf: evaluate the probability density of the data
  • logpdf: evaluate the log probability density of the data
  • simulate: generate samples from the internal evidence accumulation process

Ecosystem Integration

SSMs work with the following packages (and possibly more):

Installation

You can install a stable version of SequentialSamplingModels by running the following in the Julia REPL:

  1. ] add SequentialSamplingModels

Quick Example

In the example below, we instantiate a Linear Ballistic Accumulator (LBA) model, and generate data from it.

  1. using SequentialSamplingModels
  2. # Create LBA distribution with known parameters
  3. dist = LBA(; ν=[2.75,1.75], A=0.8, k=0.5, τ=0.25)
  4. # Sample 1000 random data points from this distribution
  5. choice, rt = rand(dist, 1000)