Skip to content

Instantly share code, notes, and snippets.

@mrtzh
mrtzh / robacc.ipynb
Last active August 29, 2015 14:05
Noise tolerance of accelerated gradient descent
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrtzh
mrtzh / julia-float-bug
Last active August 29, 2015 14:13
Julia bug in string to float conversion
float("1\n")
# converts to 1.0 of type Float64
float(split("1\n")[1])
# still converts to 1.0 of type Float64
float(split("0,1\n",",")[2])
#ERROR: ArgumentError("float64(String): invalid number format")
# in float64 at string.jl:1594
# in float at string.jl:1607
@mrtzh
mrtzh / heritage
Last active August 29, 2015 14:16
heritage health prize
{
"metadata": {
"language": "Julia",
"name": "",
"signature": "sha256:4d8ce63592fdb86a859bb9fdac3429d74f5cc6198ea5752b0f1ccf5fff72a92e"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@mrtzh
mrtzh / keybase.md
Created October 17, 2016 06:27
keybase.md

Keybase proof

I hereby claim:

  • I am mrtzh on github.
  • I am mrtz (https://keybase.io/mrtz) on keybase.
  • I have a public key whose fingerprint is 147C 87C6 DCE8 11CE C766 0C21 D327 65A9 8313 DC0A

To claim this, I am signing this object:

"""Visualize stability of stochastic gradient descent for finding a linear
separator."""
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
np.random.seed(1)
mpl.rcParams['axes.linewidth'] = 0.0