Skip to content

Instantly share code, notes, and snippets.

View marscher's full-sized avatar

Martin K. Scherer marscher

  • BAM
  • Berlin, Germany
View GitHub Profile
moments_XX remove_mean = False sym = False const = False
L, data points 100000 100000 100000
N, dimensions 100 100 100
S, nonzeros 10 90 100
time trivial 0.143 0.143 0.143
time moments_XX 0.072 0.143 0.143
speed-up 1.985 1.003 1.002
moments_XX remove_mean = False sym = False const = True
L, data points 100000 100000 100000
@marscher
marscher / results_allegro.txt
Last active November 23, 2015 17:34
covar benchmark results (allegro) []
moments_XX remove_mean = False sym = False const = False
L, data points 100000 100000 100000
N, dimensions 100 100 100
S, nonzeros 10 90 100
time trivial 0.141 0.141 0.141
time moments_XX 0.073 0.141 0.141
speed-up 1.935 1.001 1.001
moments_XX remove_mean = False sym = False const = True
L, data points 100000 100000 100000
@marscher
marscher / nbstripout
Last active August 29, 2015 14:07 — forked from minrk/nbstripout
#!/usr/bin/env python
"""strip outputs from an IPython Notebook
Opens a notebook, strips its output, and writes the outputless version to the original file.
Useful mainly as a git pre-commit hook for users who don't want to track output in VCS.
This does mostly the same thing as the `Clear All Output` command in the notebook UI.
"""
"""
Usage: python remove_output.py notebook.ipynb [ > without_output.ipynb ]
Modified from remove_output by Minrk
"""
import sys
import io
import os
from IPython.nbformat.current import read, write