kevinkyi commited on
Commit
02443e0
·
verified ·
1 Parent(s): 57ea43f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +23 -12
README.md CHANGED
@@ -1,12 +1,23 @@
1
- ---
2
- title: Classical ML Interface
3
- emoji: 💻
4
- colorFrom: yellow
5
- colorTo: pink
6
- sdk: gradio
7
- sdk_version: 5.47.2
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Sleep Habits → Phone-Before-Bed (Tabular) — Gradio GUI
2
+
3
+ **What this is:** A minimal GUI that drives a classmate’s AutoGluon Tabular model to predict whether a student uses their phone before bed (binary classification).
4
+ **Why:** Practice building a clean, user-facing interface with proper widgets, validation, and documentation.
5
+
6
+ **Model (classmate’s):** https://huggingface.co/jennifee/classical_automl_model
7
+ **Dataset (original docs):** https://huggingface.co/datasets/Iris314/Students_sleep_tabular
8
+
9
+ ## How the GUI meets the rubric
10
+ - Uses a classmate’s **tabular** model (not my own); links to **model** and **dataset**.
11
+ - Accepts **single-record** inputs via appropriate widgets with clear labels/ranges:
12
+ - Integers: `phone_hours`, `computer_hours`, `device_count`, `sleep_time`, `sleep_hours`
13
+ - Category: `sleep_quality ∈ {bad, medium, good}`
14
+ - ≥ **3 example** inputs are included in the app.
15
+ - Validation via constrained slider ranges & dropdown choices; friendly, simple UX.
16
+ - Presents predictions **clearly** via ranked class probabilities:
17
+ - “Yes (uses phone before bed)”
18
+ - “No (does not use phone before bed)”
19
+ - Deployed as a **public Hugging Face Space** with this README.
20
+
21
+ **Notes on inference parameters:** This is a binary classifier that exposes ranked probabilities. (A threshold slider is optional; the ranked probabilities already communicate confidence cleanly.)
22
+
23
+ **Acknowledgments:** Model by @jennifee; dataset by @Iris314. Built for a GUI homework assignment.