Step 1: Fork the repo.
Step 2: Clone your fork locally.
git clone https://github.com/USERNAME/REPO.git
class CopyNetSeq2Seq(Model): | |
# snip... | |
def _get_generation_scores(self, state: Dict[str, torch.Tensor]) -> torch.Tensor: | |
# `self._output_generation_layer` is just a PyTorch linear layer with an input | |
# dimension equal to the decoder hidden state size, and an output dimension | |
# equal to the size of the target vocabulary. | |
return self._output_generation_layer(state["decoder_hidden"]) |
{ | |
"trainer": { | |
"cuda_device": 0, | |
"learning_rate_scheduler": { | |
"type": "triangular", | |
// total number of epochs, should match the trainner param `num_epochs` below | |
"num_epochs": 80, | |
// increase LR linearly for 20 epochs | |
"warm_up": 20, | |
// then decrease LR linearly for 30 epochs |
find ~/ISU-DMC/dmc2016 -name '*.h' -o -name '*.R' > RFILES | |
find ~/ISU-DMC/dmc2016 -name '*.h' -o -name '*.py' > PYFILES |