Skip to content

Instantly share code, notes, and snippets.

@rahuldave
Last active September 23, 2026 15:11
Show Gist options
  • Select an option

  • Save rahuldave/f53a7ad042a4c8708fc3ca50d6f2812f to your computer and use it in GitHub Desktop.

Select an option

Save rahuldave/f53a7ad042a4c8708fc3ca50d6f2812f to your computer and use it in GitHub Desktop.
CS1090A Section 4 student files

CS1090A Section 4 — Cross-validation and Model Selection

Contents

  • cs1090a_sec04_student.ipynb: the section notebook
  • data/, images/: files the notebook reads
  • pyproject.toml, uv.lock, .python-version, src/: the Python environment definition

Setup

  1. Install uv if you don't have it:

    # macOS / Linux
    curl -LsSf https://astral.sh/uv/install.sh | sh
    # Windows (PowerShell)
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  2. From this folder, create the environment. uv downloads Python 3.14 if you don't have it and installs the exact package versions pinned in uv.lock:

    uv sync
  3. Start JupyterLab:

    uv run jupyter lab

    and open cs1090a_sec04_student.ipynb. You don't need to activate anything: uv run runs the command inside the project's .venv.

Fill in the cells marked # your code here, replacing each ... with your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment