Tutorial 4: Model Discussions#
Week 1, Day 1: Model Types
By Neuromatch Academy
Content creators: Matt Laporte, Byron Galbraith, Konrad Kording
Post-production team: Gagana B, Spiros Chavlis
Tutorial Objectives#
Estimated timing of tutorial: 45 minutes
In this tutorial, you will reflect on what/how/why models in a group discussion and discuss your preferences and thoughts on modeling.
Setup#
⚠ Experimental LLM-enhanced tutorial ⚠
This notebook includes Neuromatch’s experimental Chatify 🤖 functionality. The Chatify notebook extension adds support for a large language model-based “coding tutor” to the course materials. The tutor provides automatically generated text to help explain any code cell in this notebook.
Note that using Chatify may cause breaking changes and/or provide incorrect or misleading information. If you wish to proceed by installing and enabling the Chatify extension, you should run the next two code blocks (hidden by default). If you do not want to use this experimental version of the Neuromatch materials, please use the stable materials instead.
To use the Chatify helper, insert the %%explain
magic command at the start of any code cell and then run it (shift + enter) to access an interface for receiving LLM-based assitance. You can then select different options from the dropdown menus depending on what sort of assitance you want. Press the Submit
button to generate a response. To disable Chatify and run the code block as usual, simply delete the %%explain
command and re-run the cell.
Thanks for giving Chatify a try! Love it? Hate it? Either way, we’d love to hear from you about your Chatify experience! Please consider filling out our brief survey to provide feedback and help us make Chatify more awesome!
Run the next two cells to install and configure Chatify…
%pip install -q davos
import davos
davos.config.suppress_stdout = True
Note: you may need to restart the kernel to use updated packages.
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/davos/core/project.py:896: UserWarning: Failed to identify notebook path. Falling back to generic default project
warnings.warn(
smuggle chatify # pip: git+https://github.com/ContextLab/chatify.git
%load_ext chatify
Install and import feedback gadget#
Show code cell source
# @title Install and import feedback gadget
!pip3 install vibecheck datatops --quiet
from vibecheck import DatatopsContentReviewContainer
def content_review(notebook_section: str):
return DatatopsContentReviewContainer(
"", # No text prompt
notebook_section,
{
"url": "https://pmyvdlilci.execute-api.us-east-1.amazonaws.com/klab",
"name": "neuromatch_cn",
"user_key": "y1x3mpx5",
},
).render()
feedback_prefix = "W1D1_T4"
Section 1: Model discussions#
Think! 1: Model discussions#
Please spend the next 45 minutes or so discussing the following questions.
What is your favorite model ever
Every student contributes one. Can not reuse the same
Which models when?
For which questions do you prefer what models?
How models?
Why models?
Which model kinds do you like best?
Why?
Would you be missing something if the other models did not exist?
Submit your feedback#
Show code cell source
# @title Submit your feedback
content_review(f"{feedback_prefix}_Model_discussions_Discussion")