Skip to content

gilbertson2209/thal-val

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thal-Val

Unity implementation of Daw's Four-Armed Restless Bandit; a reinforcement learning task used recently in a study assessing value-based decision-making in Parkinson’s disease apathy (see here for summary.

Description

Intending to be a portable; OS/ device agnostic task. Builds work for for webGL, iOS, Mac & Windows.

Original motivation was to deliver task on MR compatible tablet (iPad- see MRiOS branch). See WebGL build for a demo/ to play through.

Getting Started

To build; download Unity (see dependencies); and import & build C# code should be accessible and understandable; and as such doesn't fully leverage advanced features of the C# language. Task in Main matches Daw's Restless Bandit params (see the supplementary material for details); but these are exposed in the inspector to allow anyone to play about with them.

Dependencies

Unity 2022.3.16f1; 2D (URP) (Packages in package list currently not clean and include packages from other projects)

Builds & Installing

Follow Unity Build Processes but just ask if help needed; always happy.

Logs, Data

Data read out to the Unity Application Persistent Data Path; WebGl results are written onto the browser console. Looking to improve this in a low tech way (eg just read out something sensible to idbfs).

MRiOS & Windows builds: Emailing Responses

These branches have scripts that should email the data at the end of the task to the experimenter. (The timing and play parameters may be altered in these branches compared to original).

To do this with minimal effort, open a new gmail account and add 2-factor auth. Once done, SIGN IN TO THE NEW ACCOUNT then head to https://myaccount.google.com/apppasswords where you can create an app password. The Email Data (script) component attached to GameManager has empty fields in the inspector- fill with this new email and this 'app password' (not the gmail account password).

Help

For code/ build @i-brnrd on here or via University of Dundee. For use of it try here instead.

Authors

Isla Barnard (developer)

Graham Mackenzie, Will Gilmour, Tom Gilbertson (lead)

Acknowledgments

To Nathanial Daw for Daw's Four-Armed Restless Bandit

License

See here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published