Run behavioral experiments
You will run short browser-based psychophysics tasks. These tasks show images, collect responses, and produce CSV files that store trial-by-trial data.
This page explains the main pieces of the tutorial site: browser experiments, task HTML files, image folders, CSV data, Jupyter notebooks, Google Colab, Python analysis, and artificial neural network models.
The tutorial combines online experiment demos with notebook-based analysis.
You will run short browser-based psychophysics tasks. These tasks show images, collect responses, and produce CSV files that store trial-by-trial data.
You will open Jupyter notebooks in Google Colab to clean the behavioral data, run artificial neural network models, and compare human and model results.
Each tool has a specific role. You do not need to master all of them before starting.
JavaScript makes the web pages interactive. It is used for task logic, button clicks, response collection, and launching notebooks.
jsPsych is a JavaScript library for building psychology and neuroscience experiments in the browser.
The experiments and notebooks load images from folders in the tutorial site. Image paths in the task files tell the browser which image to show.
CSV files are spreadsheet-like text files. The tasks produce CSV data, and some tutorial folders include example human or model CSV files.
A Jupyter notebook mixes text, code, outputs, and figures in one document. Notebook files usually end with .ipynb.
Google Colab lets you run Jupyter notebooks in your browser using Google’s computers. You do not need to install Python locally.
Python is the programming language used in the notebooks for loading images, processing CSV files, plotting results, and running models.
ANNs are computational models that can process images. In this tutorial, they are used as model observers that can be tested on tasks similar to the human experiments.
The playground lets you edit a task file and test the result directly in the browser. It is designed for exploration during the tutorial.
This is the most common path from experiment to analysis.
Start from the main page and choose the psychophysics or ANN tutorial.
Complete a task such as object 2AFC, ratings, drawing 2AFC, or N-back.
When the task ends, download the CSV file. This is your behavioral dataset.
Launch the matching notebook and run cells from top to bottom.
Use your own downloaded CSV or the example files provided in the tutorial.
Use the ANN notebooks and comparison notebook to study similarities and differences.
These are the main analysis tools used in the tutorial.
It contains explanations, code, results, and figures in one file. Text cells explain what is happening. Code cells perform computations. Output cells show tables, plots, images, or printed results.
.ipynb.Colab is a free browser-based notebook environment. It lets you run Python code without installing Python, Jupyter, or machine learning packages on your own computer.
Use this when you want to change an experiment and immediately test the result.
The playground loads a task HTML file into a browser editor. You can change the task and preview your modified version without changing the official tutorial site.
Edits made in the playground live only in your browser. If you refresh or close the page, changes may be lost unless you download your edited HTML file.
Start here when something does not work as expected.
No. The notebooks open in Google Colab, which runs Python in the browser.
Not for simply using the tutorial site, running tasks, opening pages, or using the temporary playground. Some Colab features may require a Google account.
The tutorial site is where you navigate, read instructions, run browser tasks, and find files. Colab is where you run notebook-based Python analyses.
Read the prompt carefully. Colab may ask for permission to save a copy to Google Drive or access files you upload. For this tutorial, you usually only need to upload or save your own tutorial files.
The Colab runtime may disconnect or reset. Run the notebook cells again from the top to recreate the variables.
The most common reason is a wrong image path. Check the folder name, file name, spelling, capitalization, and extension such as .jpg or .png.
At the end of a browser experiment, the task should download a CSV file. Save that file somewhere you can find it again, because you may need to upload it to Colab later.
No. The official site is shared and read-only for students. Use the temporary playground to test your own changes safely.
Yes. Use the playground’s download option to save your edited HTML file. Otherwise, your browser edits are temporary.
Refresh the page and try again. If you edited the task, return to the original version and then reapply changes gradually. Ask an instructor or TA if the problem continues.
Tell the instructor or TA which page, task, or notebook you were using; what you clicked; what you expected; and what happened instead. Screenshots and error messages are very helpful.
Use this to make sure you are ready for the hands-on parts.