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
""" | |
This is a batched LSTM forward and backward pass | |
""" | |
import numpy as np | |
import code | |
class LSTM: | |
@staticmethod | |
def init(input_size, hidden_size, fancy_forget_bias_init = 3): |
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
// Import the lib/ mmodules via relative paths | |
const Color = AS.Color | |
const ColorMap = AS.ColorMap | |
// import Color from '../../src/Color.js' | |
// import DataSet from '../../src/DataSet.js' | |
// import Mouse from '../../src/Mouse.js' | |
const Model = AS.Model | |
const util = AS.util | |
const modules = {Color, ColorMap, Model, util } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
cd repository | |
git checkout --orphan orphan_name | |
git rm -rf . | |
rm '.gitignore' | |
echo "#Title of Readme" > README.md | |
git add README.md | |
git commit -a -m "Initial Commit" | |
git push origin orphan_name |
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 | |
# dependencies | |
echo "Installing dependencies via Homebrew (http://brew.sh)" | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew update | |
brew install gcc48 |
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
# pulled from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/ | |
# expanded via http://superuser.com/questions/690060/how-to-enable-network-with-a-raspberry-pi-emulated-on-qemu | |
# tested with 2015-02-16-raspbian-wheezy.zip on OSX Mavericks | |
# OSX terminal | |
brew install qemu | |
# kernel-qemu is a linux kernel compiled with ARM1176 support. | |
# learn more here: http://xecdesign.com/compiling-a-kernel/ | |
curl -OL http://xecdesign.com/downloads/linux-qemu/kernel-qemu | |
curl -o raspbian_latest.zip -L http://downloads.raspberrypi.org/raspbian_latest |
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
>SRR765688.30659 HQP9GKT01B1E02 length=380|SEQORIENT=F,RC,F|MID=MID54|CPRIMER=IgG-PCR|VPRIMER=LR3|DUPCOUNT=3 | |
NNNNNNNNNNNNNNNNNNNNACGAAGCCTGGGGCCTCAGTGAAGATTTCCTGCAAGGCTT | |
CTGGATACATTTTCACTAAATATTCAATGAGTTGGGTGCGACAGGCCCCTGGACAAGGGC | |
TTGAGTGGATGGGATACATCAACACCATCACTGGTAACCCAACTTACGCCCAGGCCTTCA | |
CAGGACGGTTTGTCTTTTCCTTGGACACCTCTATCAGCACGGCATATCTGCAGATCAGCA | |
GCCTAAAGACTGACGACACTGGCATGTATTATTGTTCGACCCTCCAACCGCGTATTGCAG | |
CACCTGAATTCTGGGGCCAGGGAGCCCTGGTCGCCGTCTCCTCGGCCTCCAC | |
>SRR765688.38189 HQP9GKT01B1F8D length=357|SEQORIENT=F,F,F|MID=MID53|CPRIMER=IgG-PCR|VPRIMER=LR1|DUPCOUNT=2 | |
NNNNNNNNNNNNNNNNNNNCTGTGACATCTCCGGGGAGAGTATCTCTAACACCAATGTTG | |
GCTGGACCTGGATCAGGCAGTCCCCATCGAGAGGTCTTGAGTGGCTGGGAAGGACATTCT |
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
{%- macro form_field_label(field) -%} | |
<label for="{{ field.id }}">{{ field.label.text }} | |
{%- if field.flags.required -%} | |
<abbr title="Diese Feld muss angegeben werden">*</abbr> | |
{%- endif %}</label> | |
{% endmacro %} | |
{%- macro form_field_description(field) -%} | |
{% if field.description %} | |
<span class="descr">{{ field.description }}</span> |
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
--- | |
title: "mkn test" | |
author: "Simon D.W. Frost" | |
date: "18 August 2016" | |
output: html_document | |
--- | |
```{r} | |
library(ape) | |
library(diversitree) |