This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sympy import * | |
| # Declare weight, bias, layer outputs, and input variables | |
| # W1 and W2 are hidden and output layer weights | |
| # B1 and B2 are hidden and output layer biases | |
| # A1 and A2 are activated layer outputs | |
| # Z1 and Z2 are inactivated layer outputs | |
| # X and Y are the training data | |
| W1, W2, B1, B2, A1, A2, Z1, Z2, X, Y = \ |