Question: This exercise asks you to implement the beginnings of a simple deep learning package. a. Implement a data structure for general computation graphs, as described

This exercise asks you to implement the beginnings of a simple deep learning package.

a. Implement a data structure for general computation graphs, as described in Section 21.1, and define the node types required to support feed-forward neural networks with a variety of activation functions. 

b. Write a function that computes the outputs of the computation graph given the inputs. 

c. Now write a function that computes the error for a labelled example. 

d. Finally, implement the local back-propagation algorithm based on Equations (21.11) and (21.12) and use it to create a stochastic gradient descent learning algorithm for a set of examples.

Step by Step Solution

3.57 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Implementation of Computation Graph Data Structure and Node Types To implement a computation graph data structure we can define a class called ComputationGraph This class will have the following att... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Artificial Intelligence A Modern approach Questions!