Skip to content

Instantly share code, notes, and snippets.

View adam-r-kowalski's full-sized avatar

Adam Kowalski adam-r-kowalski

  • simspace
  • Vancouver Washington
  • 18:23 (UTC -07:00)
View GitHub Profile
using Flux, PyCall, Distributions, Statistics, Plots
using Flux: params
using Flux.Tracker: gradient, update!
gym = pyimport("gym")
struct PolicyGradient{P, O}
policy::P
optimizer::O
log_probabilities::Vector{Tracker.TrackedReal{Float32}}
@adam-r-kowalski
adam-r-kowalski / NamedArray.jl
Last active January 14, 2019 23:19
Named Array
module Demo
export NamedArray
import Base: size, getindex, setindex!, IndexStyle,
randn, length, permutedims
struct NamedArray{T, S, N, A <: AbstractArray{T, N}} # <: AbstractArray{T, N}
data::A
end
@adam-r-kowalski
adam-r-kowalski / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">