Programming for Cognitive and Brain Sciences¶
- PDF version of this document
- Git repository on github (contains slides, solutions to exercices, and more)
Contents:
- 1. Foreword
- 2. Software Installation
- 3. Check your installation
- 4. Starting from Scratch
- 5. Fun programming language
- 6. Interacting with a computer (in a Nutshell)
- 7. Running Python
- 7.1. Running a python script from the command line
- 7.2. Testing a short piece of python code
- 7.3. Write code with a text editor (Edit-run cycle)
- 7.4. Using an Integrated Development Environment (IDE)
- 7.5. Perform an interactive data analysis with jupyter-notebook or jupyter-lab
- 7.6. Developping in Python with Emacs
- 8. Coding Exercises
- 9. Automata and Computers
- 9.1. The Computational Theory of Mind
- 9.2. What is computation anyway ?
- 9.3. The ancestors of the computer: the automata
- 9.4. Formal description of an automaton
- 9.5. Examples of transition diagrams
- 9.6. What is a Computer?
- 9.7. Register machines
- 9.8. The Seven secrets of computers revealed
- 9.9. Programmable computers
- 9.10. Compilation and interpretation
- 9.11. Operating systems
- 9.12. What is a Terminal?
- 10. Representations of numbers, text, images
- 11. Creating stimuli
- 12. Experiments
- 12.1. Simple reaction times
- 12.2. Decision times
- 12.3. Numerical distance effect
- 12.4. Lexical Decision
- 12.5. Posner’s attentional cueing task
- 12.6. Stroop Effect
- 12.7. A general audio visual stimulus presentation script
- 12.8. Sound-picture matching using a touchscreen
- 12.9. More examples using Expyriment
- 13. Programming a Lexical decision task
- 13.1. Step 1: stimuli in constants
- 13.2. Step 2: read stimuli from a csv file
- 13.3. Select words in a lexical dabatase
- 13.4. Automatising database searches with R and Python
- 13.5. Generate nonwords
- 13.6. Create a stimuli file
- 13.7. Use sys.argv to pass the name of the file containing the list of stimuli
- 13.8. Improving the pseudowords
- 13.9. Data analysis
- 13.10. Finally
- 14. Data Analyses
- 15. Lexical Statistics
- 16. Regular Expressions
- 17. Simulations
- 18. Hopfield Networks
- 19. Web Scraping
- 20. Tools to do Reproducible Science
- 21. Resources to learn Git
- 22. How to solve problems
- 23. Writing clean code
- 24. Building abstractions with recursive functions and higher-order functions
- 25. Sending TTL triggers
- 26. Cogmaster Lectures
- 27. Projects
- 28. Resources