Download utils.py from verifiability-tutorial/verifiability: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/verifiability-tutorial/verifiability/resolve/be12dd01daffeef588e5ee76bea7b0070a3ee7e9/utils.py
- Command line
-
hf download hf://spaces/verifiability-tutorial/verifiability@be12dd01daffeef588e5ee76bea7b0070a3ee7e9/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/verifiability-tutorial/verifiability/resolve/be12dd01daffeef588e5ee76bea7b0070a3ee7e9/utils.py
1.36 kB
| import streamlit as st | |
| # Define pipeline stages | |
| 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() | |