Updated README.md, few bug tweaks, adding regression_results.ipynb

This commit is contained in:
hpayer committed 2026-10-08 16:46:27 -04:00
1 parent b7b1e38b4e
commit ac4d2afed4
7 files changed
+886 -346

No files matched your search

+1 -9
View File
@@ -8,14 +8,6 @@ Run locally (from the repo root):
or run this file directly (e.g. from the IDE):
python api/museum_api.py
Or with a DataFrame you already have in memory:
from api.museum_api import create_app
import uvicorn
uvicorn.run(create_app(df), port=8000)
Expected columns: Name, Visitors, City, Country, Population
"""
from __future__ import annotations
@@ -252,7 +244,7 @@ def create_app(
return [Prediction(population=p, predicted_visitors=float(v))
for p, v in zip(req.populations, preds)]
@app.get("data")
@app.get("/data")
def data():
"""Every row the model was fitted on, with its prediction."""
m = get_model()