Last active
August 28, 2019 21:27
-
-
Save n0obcoder/56c95c0444f3f3ed549321ab43e0845a to your computer and use it in GitHub Desktop.
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
| # Let's see what are the learnt parameters after having trained the model for hundreds of epochs | |
| m_learnt = model.linear.weight.item() | |
| c_learnt = model.linear.bias.item() | |
| print('\nCompare the learnt parameters with the original ones') | |
| print('\nm_synthetic VS m_learnt') | |
| print(' {} {}'.format(m_synthetic, m_learnt)) | |
| print('\nc_synthetic VS c_learnt') | |
| print(' {} {}'.format(c_synthetic, c_learnt)) |
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
| Compare the learnt parameters with the original ones | |
| m_synthetic VS m_learnt | |
| -0.67 -0.6612429618835449 | |
| c_synthetic VS c_learnt | |
| 6 0.3956650197505951 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment