Skip to content

Commit

Permalink
simplify demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Leao authored and Eduardo Leao committed Jul 25, 2024
1 parent 46cd3dc commit 2a9810b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions assets/demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ <h2 style="display: inline-block; margin-left: 20px; margin-top: 2px; margin-bot
<label for="beta2">Beta 2 (Adam):</label>
<input type="number" id="beta2" name="beta2" step="0.0001" min="0" value="0.999">

<label for="epsilon">Epsilon (Adam):</label>
<input type="number" id="epsilon" name="epsilon" step="0.000001" min="0" value="0.000001">

</div>
</div>
<div class="right-div">
Expand Down Expand Up @@ -294,7 +291,7 @@ <h2>Graph</h2>
let reg = Number(document.getElementById('regularization').value )
let beta1 = Number(document.getElementById('beta1').value )
let beta2 = Number(document.getElementById('beta2').value )
let eps = Number(document.getElementById('epsilon').value )
let eps = Number(0.000001)

// Build optimizer:
let optimizer = new torch.optim.Adam(model.parameters(), lr=lr, reg=reg, betas=[beta1, beta2], eps=eps)
Expand Down

0 comments on commit 2a9810b

Please sign in to comment.