{ "cells": [ { "cell_type": "markdown", "id": "intro", "metadata": {}, "source": [ "# 01 - Quick start\n", "\n", "Fit `MaldiMLPClassifier` on real MALDI-TOF spectra and inspect its sklearn-compatible API.\n", "\n", "All notebooks in this folder use the **MALDI-Kleb-AI** dataset (Rocchi *et al.*, 2026; [Zenodo DOI 10.5281/zenodo.17405072](https://zenodo.org/records/17405072)) - *Klebsiella* isolates from three Italian clinical centres, with Amikacin / Meropenem AMR labels. `notebooks/_demo.py` caches the 370 MB tarball under `~/.cache/maldideepkit/` (or `$MALDIDEEPKIT_CACHE_DIR`) on first use." ] }, { "cell_type": "markdown", "id": "load-md", "metadata": {}, "source": [ "## 1. Load the demo dataset" ] }, { "cell_type": "code", "execution_count": 1, "id": "load", "metadata": { "execution": { "iopub.execute_input": "2026-04-28T09:47:04.858401Z", "iopub.status.busy": "2026-04-28T09:47:04.858297Z", "iopub.status.idle": "2026-04-28T09:47:22.012396Z", "shell.execute_reply": "2026-04-28T09:47:22.011629Z" } }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "face9204d67048a69323d5ce96ab7daf", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Processing spectra: 0%| | 0/743 [00:00