-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
32 lines (22 loc) · 885 Bytes
/
app.py
File metadata and controls
32 lines (22 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from __future__ import annotations
import streamlit as st
from state import ensure_state
from ui.sidebar import render_sidebar
from ui.tournament import render_tournament
from ui.prediction import render_prediction_and_whatif
from ui.diagnostics import render_diagnostics
def main() -> None:
st.set_page_config(page_title="AutoML Model Tournament", layout="wide")
ensure_state()
app = st.session_state["app"]
st.title("🏆 AutoML Model Tournament")
st.caption("Modular build with prediction uncertainty bands (regression) and confidence (classification).")
render_sidebar(app)
if app["data"]["df"] is None:
st.stop()
render_tournament(app)
if app["tournament"].get("best_model") is not None:
render_prediction_and_whatif(app)
render_diagnostics(df=app['data']['df'], app=app)
if __name__ == "__main__":
main()