From b8e5578ab07dd95dfcc3d8f96d0a4e78cba4c300 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 19 Oct 2017 14:32:26 -0700 Subject: [PATCH] Beginning backpropagation animations --- nn/part3.py | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 nn/part3.py diff --git a/nn/part3.py b/nn/part3.py new file mode 100644 index 00000000..5b683763 --- /dev/null +++ b/nn/part3.py @@ -0,0 +1,103 @@ +from nn.network import * +from nn.part1 import * +from nn.part2 import * + +class LayOutPlan(Scene): + def construct(self): + title = TextMobject("Plan") + title.scale(1.5) + title.to_edge(UP) + h_line = Line(LEFT, RIGHT).scale(SPACE_WIDTH - 1) + h_line.next_to(title, DOWN) + + items = BulletedList( + "Recap", + "Intuitive walkthrough", + "Derivatives in \\\\ computational graphs", + ) + items.to_edge(LEFT, buff = LARGE_BUFF) + self.add(items) + + rect = ScreenRectangle() + rect.scale_to_fit_width(2*SPACE_WIDTH - items.get_width() - 2) + rect.next_to(items, RIGHT, MED_LARGE_BUFF) + + self.play( + Write(title), + ShowCreation(h_line), + ShowCreation(rect), + run_time = 2 + ) + for i in range(len(items)): + self.play(items.fade_all_but, i) + self.dither(2) + +class TODOInsertFeedForwardAnimations(TODOStub): + CONFIG = { + "message" : "Insert Feed Forward Animations" + } + +class TODOInsertStepsDownCostSurface(TODOStub): + CONFIG = { + "message" : "Insert Steps Down Cost Surface" + } + +class TODOInsertDefinitionOfCostFunction(TODOStub): + CONFIG = { + "message" : "Insert Definition of cost function" + } + + +class TODOInsertGradientNudging(TODOStub): + CONFIG = { + "message" : "Insert GradientNudging" + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +