Added sigmoid activation, and ability to do activation above linear layers.

This commit is contained in:
Alec Helbling
2023-01-25 17:36:44 -05:00
parent 4948c0ea4e
commit 301b230c73
7 changed files with 57 additions and 10 deletions

View File

@ -63,12 +63,12 @@ class CombinedScene(ThreeDScene):
nn.move_to(ORIGIN)
self.add(nn)
# Make code snippet
code = make_code_snippet()
code.next_to(nn, DOWN)
self.add(code)
nn.move_to(ORIGIN)
# code = make_code_snippet()
# code.next_to(nn, DOWN)
# self.add(code)
# nn.move_to(ORIGIN)
# Move everything up
Group(nn, code).move_to(ORIGIN)
# Group(nn, code).move_to(ORIGIN)
# Play animation
forward_pass = nn.make_forward_pass_animation()
self.wait(1)