Skip to content

Instantly share code, notes, and snippets.

View debug_nested.jl
using Flux
qdim = 2
nn = Chain(Dense(qdim, 32, tanh), Dense(32, 2));
q = rand(2, 5);
function jac(x)
o = nn(x)
return reduce(hcat, [o[:, i] for i in 1:size(x)[end]])
end
View test_dircol.py
#!/usr/bin/env python3
#
# File: test_dircol.py
#
import numpy as np
import torch
from optimalcontrol.dircolproblem import DIRCOLProblem
from mechamodlearn import utils
View segfault_mujoco.jl
using MuJoCo
modelfile = "test/humanoid.xml"
pm = mj_loadXML(modelfile) # Raw C pointer to mjModel
pd = mj_makeData(pm) # Raw C pointer to mjData
m, d = mj.mapmujoco(pm, pd) # wrap with our jlModel, jlData types
# we can manipulate data in the raw C structs now
nq = mj.get(m, :nq)
@rejuvyesh
rejuvyesh / notebook.ipynb
Created Jul 19, 2017 — forked from eamartin/notebook.ipynb
Understanding & Visualizing Self-Normalizing Neural Networks
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bold_symbols.tex
\newcommand{\ba}{\mathbf{a}}
\newcommand{\bb}{\mathbf{b}}
\newcommand{\bc}{\mathbf{c}}
\newcommand{\bd}{\mathbf{d}}
\newcommand{\be}{\mathbf{e}}
\newcommand{\bg}{\mathbf{g}}
\newcommand{\bh}{\mathbf{h}}
\newcommand{\bi}{\mathbf{i}}
\newcommand{\bj}{\mathbf{j}}
\newcommand{\bk}{\mathbf{k}}
View simple_multiwalker_spec.yaml
agents:
- idx: 0
status: 1
rate: 1.0
learner:
cls: SharedFFA3CLearner
lidx: 0
- idx: 1
status: 1
rate: 1.0
View GR_reviews.user.js
// ==UserScript==
// @name GoodReads Review Management
// @namespace FeepingCreature@github.com
// @description Show/Hide reviews. State stored between site loads
// @include */www.goodreads.com/*
// @version 1
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// ==/UserScript==
View Research.org

centralized-gru centralized-mlp decentralized-gru decentralized-mlp concurrent-gru concurrent-mlp heuristic centralized-gru None 0.000001 1.244561e-04 3.725950e-07 None 2.741967e-07 7.556929e-10 centralized-mlp None NaN 9.068058e-10 1.913996e-03 None 2.822655e-09 7.745546e-02 decentralized-gru None NaN NaN 4.429615e-06 None 1.242145e-03 8.031091e-10 decentralized-mlp None NaN NaN NaN None 9.002403e-09 1.067955e-08 concurrent-gru None NaN NaN NaN None NaN NaN concurrent-mlp None NaN NaN NaN None NaN 8.534227e-10 heuristic None NaN NaN N

View Research.org

centralized-gru centralized-mlp decentralized-gru decentralized-mlp concurrent-gru concurrent-mlp heuristic centralized-gru None 0.003187 0.214810 7.582445e-09 None 1.323825e-07 1.440084e-02 centralized-mlp None NaN 0.000644 3.366814e-09 None 1.265880e-08 9.346047e-01 decentralized-gru None NaN NaN 8.029683e-09 None 1.549680e-07 4.337083e-03 decentralized-mlp None NaN NaN NaN None 2.739982e-02 1.774222e-08 concurrent-gru None NaN NaN NaN None NaN NaN concurrent-mlp None NaN NaN NaN None NaN 1.011512e-06 heuristic None NaN NaN

View README.org

for fl in wgEncode*.broadPeak; do /afs/ir/class/cs273a/bin/overlapSelect -selectCoordCols=0,1,2 -inCoordCols=0,1,2 hg19.knownGene.codingExons.bed ${fl} “${fl}_observed_overlaps_coding.bed”; done for fl in wgEncode*.broadPeak; do /afs/ir/class/cs273a/bin/overlapSelect -selectCoordCols=0,1,2 -inCoordCols=0,1,2 wgEncodeAwgDnaseDukeOsteoblUniPk.narrowPeak ${fl} “${fl}_observed_overlaps_narrow.bed”; done

for hist in H3k27me3Pk blH3k36me3StdPk blH3k27acStdPk; do for i in $(seq 100); do /afs/ir/class/cs273a/bin/overlapSelect -selectCoordCols=0,1,2 -inCoordCols=0,1,2 hg19.knownGene.codingExons.bed “wgEncodeBroadHistoneOsteo${hist}.broadPeak_shuffle_${i}.bed” “${hist}_shuffle_${i}_coding_overlap.bed”; /afs/ir/class/cs273a/bin/overlapSelect -selectCoordCols=0,1,2 -inCoordCols=0,1,2 wgEncodeAwgDnaseDukeOsteoblUniPk.narrowPeak “wgEncodeBroadHistoneOsteo${hist}.broadPeak_shuffle_${i}.bed” “${hist}_shuffle_${i}_narrow_overlap.bed”; done; done

You can’t perform that action at this time.