diff --git a/src/api.py b/src/api.py
index ed324fa..d5b9ef4 100644
--- a/src/api.py
+++ b/src/api.py
@@ -135,6 +135,7 @@ async def train(
test_size: float = Form(0.2),
random_state: int = Form(42),
n_estimators: int = Form(100),
+ max_depth: str = Form(""), # Empty string means None
kernel: str = Form("linear"),
C: float = Form(1.0),
):
@@ -182,6 +183,7 @@ async def train(
strategy,
{
"n_estimators": n_estimators,
+ "max_depth": int(max_depth) if max_depth else None,
"kernel": kernel,
"C": C,
"random_state": random_state,
diff --git a/static/index.html b/static/index.html
index 6fea884..7832c39 100644
--- a/static/index.html
+++ b/static/index.html
@@ -34,6 +34,7 @@
padding: 20px;
overflow-y: auto;
border-right: 1px solid #0f3460;
+ color: #e0e0e0;
}
.sidebar h1 {
@@ -45,11 +46,20 @@
.sidebar h2 {
font-size: 1.1rem;
margin: 20px 0 10px;
- color: #0f3460;
+ color: #ff6b6b;
border-bottom: 2px solid #e94560;
padding-bottom: 5px;
}
+ .sidebar h3 {
+ color: #ff8e8e;
+ font-size: 0.95rem;
+ }
+
+ .sidebar p {
+ color: #c0c0c0;
+ }
+
.form-group {
margin-bottom: 15px;
}
@@ -58,7 +68,8 @@
display: block;
margin-bottom: 5px;
font-size: 0.9rem;
- color: #aaa;
+ color: #ccc;
+ font-weight: 500;
}
.form-group input,
@@ -79,7 +90,7 @@
.form-group small {
display: block;
margin-top: 3px;
- color: #666;
+ color: #888;
font-size: 0.8rem;
}
@@ -337,7 +348,33 @@
-
3. Train & Classify
+
+
+
+ Leave empty for automatic depth
+
+
+
+
+
+ Regularization strength (default: 1.0)
+
+
+ Training Parameters
+
+
+
+
+ Fraction of data for validation (default: 0.2)
+
+
+
+
+
+ For reproducibility (default: 42)
+
+
+ 3. Train classifier
@@ -369,7 +406,7 @@
- 4. Class Templates
+ 4. Classify and visualize