Files
models/pyproject.toml
T
edgar 01e4406838 The notebook runner moves to reports/: experiment, notebook_jobs and notebook_import next to rendering and eda
They run a notebook on a build's file and keep it as an MLflow run, as eda does; io/ keeps the storage and MLflow
boundary and pipelines/ the cohort pipelines. Moved whole with git mv, imports repointed; models.notebook, the API
notebooks import, stays where it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-19 20:50:46 -06:00

54 lines
1.5 KiB
TOML

[project]
name = "models"
version = "0.1.0"
description = "train()/predict() interfaces for the CaCu, CaMa and TEA screening models."
requires-python = ">=3.11"
dependencies = [
"persistance",
"extraction",
"mlflow>=2.9",
# The model DAGs (`models/pipelines`): each function a node, each parameter an edge.
"apache-hamilton>=1.90",
# Cohort builds are Parquet files, read and written as frames.
"pandas>=2.0",
"pyarrow>=15",
"scikit-learn>=1.4",
# The values of the cohort and estimate files (`models.io.contracts`).
"pandera>=0.20",
]
[project.optional-dependencies]
# Running uploaded notebooks without Quarto (models.reports.rendering.JupyterRenderer, models.reports.experiment).
notebooks = [
"nbclient>=0.10",
"nbconvert>=7.16",
"ipykernel>=6.29",
]
[tool.uv.sources]
persistance = { path = "../Persistance", editable = true }
extraction = { path = "../Extraction", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["models"]
exclude = ["**/notebooks"]
[dependency-groups]
dev = [
"pytest>=8.0.0",
"reportlab>=4.0",
"nbclient>=0.10",
"nbconvert>=7.16",
"ipykernel>=6.29",
]
# The scenarios' notebooks (`<scenario>/notebooks/`): a Jupyter kernel and the drawing of the Hamilton DAGs.
# `graphviz` is only the Python side: drawing also needs Graphviz's `dot` program on the machine.
notebooks = [
"ipykernel>=6.29",
"graphviz>=0.20",
]