This file contains 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
import torch.nn as nn | |
class SRU(nn.Module): | |
""" Simple Recurrent Unit https://arxiv.org/pdf/1709.02755.pdf """ | |
def __init__(self, input_size, hidden_size, activation=F.tanh): | |
super().__init__() | |
self.input_size = input_size | |
self.hidden_size = hidden_size | |
This file contains 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
import gym | |
import numpy as np | |
from keras.models import Model | |
from keras.layers import * | |
from keras import backend as K | |
from collections import deque | |
def one_hot(index, categories): |
This file contains 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
def propertyFile = file "src/main/resources/META-INF/some.properties" | |
def props = new Properties() | |
propertyFile.withReader { props.load(it) } | |
props.setProperty("version", project.version) | |
propertyFile.withWriter { props.store(it) } |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am calclavia on github. | |
* I am calclavia (https://keybase.io/calclavia) on keybase. | |
* I have a public key whose fingerprint is 286A B9D4 640F 586E 1D45 55C9 4ED2 7348 F4C4 0B9C | |
To claim this, I am signing this object: |
This file contains 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
/** | |
* Generates a TeamCity XML changelog via the REST API. | |
*/ | |
task("createChangelog").doLast { | |
def teamCityURL = "http://ci.calclavia.com/" | |
/** | |
* Create a new file | |
*/ |