DDW_Machine_Learning / linear-regression /linear-regression-steps.html
abril4416
Add Gradio hub with linear and logistic regression interfaces
c745dff
Raw
History Blame Contribute Delete
2.32 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Linear Regression Step Trainer</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="bg-grid"></div>
<main class="container">
<nav class="top-nav">
<a href="index.html">Back Home</a>
</nav>
<header class="hero compact">
<p class="eyebrow">Page 3</p>
<h1>Linear Regression Step Trainer</h1>
<p>
Practice one-step gradient and parameter updates with two data samples.
Choose a model setup, optionally enable z-normalization, then inspect
every calculation in detail.
</p>
</header>
<section class="panel controls">
<div class="row">
<label for="setupSelect">Parameter Setup</label>
<select id="setupSelect">
<option value="two_weights_no_intercept">Two weights, no intercept: y_hat = w1x1 + w2x2</option>
<option value="two_weights_one_intercept">Two weights + one intercept: y_hat = b + w1x1 + w2x2</option>
<option value="one_weight_one_intercept">One weight + one intercept: y_hat = b + wx</option>
</select>
</div>
<div class="row">
<label for="alphaInput">Learning Rate (alpha)</label>
<input id="alphaInput" type="number" min="0.01" max="1" step="0.01" value="0.1" />
</div>
<div class="row">
<label for="zNormToggle">Use z-normalization</label>
<input id="zNormToggle" type="checkbox" />
</div>
<div class="row">
<button id="newQuestionBtn" type="button">Randomize New Samples</button>
<button id="solveBtn" type="button">Show Step-by-Step Solution</button>
</div>
</section>
<section class="panel output">
<h2>Question Data (Ground-Truth y Included)</h2>
<div id="questionPrompt" class="viz-grid"></div>
</section>
<section class="panel output">
<h2>Detailed Process, Result, and Explanation</h2>
<div id="solutionOutput" class="viz-grid"></div>
</section>
</main>
<script src="linear-regression-steps.js?v=20260812"></script>
</body>
</html>