File size: 1,908 Bytes
c745dff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>DDW Interface - Simple Sigmoid</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <header class="site-header">
      <div>
        <p class="kicker">Data Driven World</p>
        <h1>Simple Sigmoid (Page 1)</h1>
      </div>
      <nav>
        <a href="index.html">Home</a>
        <a class="active" href="simple-sigmoid.html">Simple Sigmoid</a>
        <a href="confusion-matrix.html">Confusion Matrix (Page 3)</a>
        <a href="sigmoid.html">Sigmoid Function</a>
        <a href="cost-visualization.html">Cost Function</a>
        <a href="about.html">Notes</a>
      </nav>
    </header>

    <main class="layout">
      <section class="panel controls">
        <h2>Single-Variable Function</h2>

        <p class="hint">
          Illustrating: <code>1 / (1 + np.exp(-z))</code>
        </p>

        <label for="z">z value: <span id="zValue">0.00</span></label>
        <input id="z" type="range" min="-10" max="10" step="0.1" value="0" />

        <div class="button-row">
          <button id="resetSimple" type="button">Reset</button>
          <button id="animateSimple" type="button">Animate z</button>
        </div>

        <div class="checkboxes">
          <label><input id="showHalf" type="checkbox" checked /> Show y = 0.5 line</label>
          <label><input id="showFormula" type="checkbox" checked /> Show formula annotation</label>
        </div>
      </section>

      <section class="panel chart-panel">
        <h2>sigmoid(z) = 1 / (1 + np.exp(-z))</h2>
        <canvas id="simplePlot" width="900" height="520" aria-label="Simple sigmoid chart"></canvas>
        <div class="stats" id="simpleStats"></div>
      </section>
    </main>

    <script src="simple.js"></script>
  </body>
</html>