abril4416 commited on
Commit
90efbc3
·
1 Parent(s): 424a11f

Add homepage descriptions for week10 and week11 sub-pages

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -14,7 +14,12 @@ with gr.Blocks(title="DDW Machine Learning") as demo:
14
  """
15
  <div style="border:1px solid #ddd;border-radius:12px;padding:16px;">
16
  <h3>Linear Regression</h3>
17
- <p>Week10 interface with NumPy Lab, Gradient Descent Studio, and Step Trainer.</p>
 
 
 
 
 
18
  <a href="/gradio_api/file=linear-regression/index.html" target="_blank" rel="noopener noreferrer">Open Linear Regression Interface</a>
19
  </div>
20
  """
@@ -23,7 +28,14 @@ with gr.Blocks(title="DDW Machine Learning") as demo:
23
  """
24
  <div style="border:1px solid #ddd;border-radius:12px;padding:16px;">
25
  <h3>Logistic Regression</h3>
26
- <p>Week11 interface with sigmoid, confusion matrix, and cost-function pages.</p>
 
 
 
 
 
 
 
27
  <a href="/gradio_api/file=logistic-regression/index.html" target="_blank" rel="noopener noreferrer">Open Logistic Regression Interface</a>
28
  </div>
29
  """
 
14
  """
15
  <div style="border:1px solid #ddd;border-radius:12px;padding:16px;">
16
  <h3>Linear Regression</h3>
17
+ <p>Week10 interactive pages:</p>
18
+ <ul>
19
+ <li><strong>NumPy Matrix Lab:</strong> matrix operations, shape-aware input fields, generated NumPy code, and output visualization.</li>
20
+ <li><strong>Gradient Descent Studio:</strong> one-feature linear regression optimization with step-level gradients, cost, and trajectory visualization.</li>
21
+ <li><strong>Linear Regression Step Trainer:</strong> hand-calculation practice for gradients and one-step parameter updates with optional normalization.</li>
22
+ </ul>
23
  <a href="/gradio_api/file=linear-regression/index.html" target="_blank" rel="noopener noreferrer">Open Linear Regression Interface</a>
24
  </div>
25
  """
 
28
  """
29
  <div style="border:1px solid #ddd;border-radius:12px;padding:16px;">
30
  <h3>Logistic Regression</h3>
31
+ <p>Week11 interactive pages:</p>
32
+ <ul>
33
+ <li><strong>Simple Sigmoid:</strong> basic view of sigmoid output from a single z value.</li>
34
+ <li><strong>Confusion Matrix Practice:</strong> threshold-based classification practice with confusion matrix and metrics.</li>
35
+ <li><strong>Sigmoid Function:</strong> interactive plot for p = 1 / (1 + exp(-(b0 + b1x))) with parameter controls.</li>
36
+ <li><strong>Cost Function Visualization:</strong> compare logistic-model cases and observe gradient-descent behavior on the cost surface.</li>
37
+ <li><strong>Notes:</strong> supporting lecture notes and page context.</li>
38
+ </ul>
39
  <a href="/gradio_api/file=logistic-regression/index.html" target="_blank" rel="noopener noreferrer">Open Logistic Regression Interface</a>
40
  </div>
41
  """