Added support for Neural Network overhead title and per-layer title.

This commit is contained in:
Alec Helbling
2022-04-19 00:36:15 -04:00
parent 05f512f185
commit 229c27fa3f
12 changed files with 77 additions and 16 deletions

View File

@ -94,7 +94,7 @@ class NeuralNetworkScene(Scene):
def construct(self):
# Make the Layer object
layers = [
FeedForwardLayer(3),
FeedForwardLayer(3, title="Title Test"),
FeedForwardLayer(5),
FeedForwardLayer(3)
]
@ -102,6 +102,7 @@ class NeuralNetworkScene(Scene):
nn.move_to(ORIGIN)
# Make Animation
self.add(nn)
#self.play(Create(nn))
forward_propagation_animation = nn.make_forward_pass_animation(run_time=5, passing_flash=True)
self.play(forward_propagation_animation)