Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
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
| """ | |
| A bare bones examples of optimizing a black-box function (f) using | |
| Natural Evolution Strategies (NES), where the parameter distribution is a | |
| gaussian of fixed standard deviation. | |
| """ | |
| import numpy as np | |
| np.random.seed(0) | |
| # the function we want to optimize |
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
| // Anonymous "self-invoking" function | |
| alert("Thank you for using this script created by Louis Hong (/u/loolo78)\n\nThe download will now begin."); | |
| (function() { | |
| // Load the script | |
| var script = document.createElement("SCRIPT"); | |
| script.src = 'https://code.jquery.com/jquery-latest.min.js'; | |
| script.type = 'text/javascript'; | |
| document.getElementsByTagName("head")[0].appendChild(script); |