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 keras.callbacks import Callback | |
| import keras.backend as K | |
| import numpy as np | |
| class SGDRScheduler(Callback): | |
| '''Cosine annealing learning rate scheduler with periodic restarts. | |
| # Usage | |
| ```python | |
| schedule = SGDRScheduler(min_lr=1e-5, |
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
| #!/bin/sh | |
| ####################################### | |
| # Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems. | |
| # Written by @AamnahAkram from http://aamnah.com | |
| # In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors. | |
| ####################################### | |
| #COLORS |
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
| # SETTING UP : | |
| # Generate an application token for your dropbox account and set it as environment variable named "DROPBOX_TOKEN" | |
| # - https://blogs.dropbox.com/developers/2014/05/generate-an-access-token-for-your-own-account/ | |
| # - https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html | |
| # Edit TEX_FILE (see below) according to the main tex file name | |
| image: fermiumlabs/latex-docker:latest | |
| pipelines: | |
| custom: # Manually only |
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
| # =================== YOUR DATA ======================== | |
| SERVER_NAME="some-server-name" | |
| SERVER_IP="111.111.11.11" | |
| USER="someuser" | |
| SUDO_PASSWORD="secret-password-one" | |
| MYSQL_ROOT_PASSWORD="secret-password-two" |
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
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
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
| #! /usr/bin/python | |
| # | |
| # Author: Gaute Hope (gaute.hope@nersc.no) / 2015 | |
| # | |
| # based on example from matlab sinc function and | |
| # interpolate.m by H. Hobæk (1994). | |
| # | |
| # this implementation is similar to the matlab sinc-example, but | |
| # calculates the values sequentially and not as a single matrix | |
| # matrix operation for all the values. |