Skip to content

Instantly share code, notes, and snippets.

Moritz mrtzh

Block or report user

Report or block mrtzh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 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:

View sgd-stability.py
"""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
@mrtzh
mrtzh / heritage
Last active Aug 29, 2015
heritage health prize
View heritage
{
"metadata": {
"language": "Julia",
"name": "",
"signature": "sha256:4d8ce63592fdb86a859bb9fdac3429d74f5cc6198ea5752b0f1ccf5fff72a92e"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@mrtzh
mrtzh / julia-float-bug
Last active Aug 29, 2015
Julia bug in string to float conversion
View julia-float-bug
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 / robacc.ipynb
Last active Aug 29, 2015
Noise tolerance of accelerated gradient descent
View robacc.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.