| import streamlit as st |
|
|
| |
| development_stages = [ |
| {"label": "Data Collection", "icon": "π₯", "questions": [ |
| "Where will you source the data from?", |
| "How will you ensure data quality?", |
| "Will you balance classes?" |
| ]}, |
| {"label": "Preprocessing", "icon": "π οΈ", "questions": [ |
| "What features will you select?", |
| "Will you impute missing values or remove them?", |
| "How will you handle outliers?" |
| ]}, |
| {"label": "Model Selection", "icon": "π€", "questions": [ |
| "Which algorithms will you consider?", |
| "Will you use pre-trained models?", |
| "How will you handle hyperparameters?" |
| ]}, |
| {"label": "Training", "icon": "ποΈ", "questions": [ |
| "What loss function will you use?", |
| "How will you split train/validation?", |
| "Will you use early stopping?" |
| ]}, |
| {"label": "Evaluation", "icon": "π", "questions": [ |
| "What metrics will you use?", |
| "Will you test on unseen data?", |
| "Will you consider fairness metrics?" |
| ]} |
| ] |
|
|
| def go_to(page_name, from_callback=False): |
| """ |
| Updates the session_state page and optionally triggers a rerun. |
| - from_callback=True if called inside an on_click callback |
| """ |
| st.session_state.page = page_name |
| if not from_callback: |
| st.rerun() |
|
|