ml:educational_framework_edf
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ml:educational_framework_edf [2020/08/19 11:41] – jmflanig | ml:educational_framework_edf [2023/06/15 07:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Educational Framework ====== | ====== Educational Framework ====== | ||
| - | The Educational Framework (EDF) is a deep learning framework for educational purposes written in 150 lines of python | + | The Educational Framework (EDF) is a deep learning framework for educational purposes written in 150 lines of Python |
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | Here is the complete source code for the framework: | ||
| <code python> | <code python> | ||
| Line 10: | Line 12: | ||
| learning_rate = .001 | learning_rate = .001 | ||
| - | #################### | + | ######################## |
| # This should be done immediately before creating a new computation graph. | # This should be done immediately before creating a new computation graph. | ||
| Line 18: | Line 20: | ||
| Parameters = [] | Parameters = [] | ||
| - | ################# | + | ########################### |
| def Forward(): | def Forward(): | ||
| Line 33: | Line 35: | ||
| for p in Parameters: p.SGD() | for p in Parameters: p.SGD() | ||
| - | ################## | + | ########################## |
| """ | """ | ||
| - | There are three kinds of nodes in a computation graph, inputs, parameters, and computed nodes (CompNodes). | + | There are three kinds of nodes in a computation graph, inputs, parameters, |
| - | Computed nodes are defined on a case by case bases. | + | and computed nodes (CompNodes). |
| - | defined below. | + | Computed nodes are defined on a case by case bases. |
| + | is defined as an example. | ||
| """ | """ | ||
| Line 66: | Line 69: | ||
| self.grad += delta | self.grad += delta | ||
| - | ############### | + | ############### |
| class ParameterPackage: | class ParameterPackage: | ||
ml/educational_framework_edf.1597837263.txt.gz · Last modified: 2023/06/15 07:36 (external edit)