Skip to content

Instantly share code, notes, and snippets.

Christian osdf

Block or report user

Report or block osdf

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 project_1.md

Project 1: Panorama stitching

Due: 23 Sept 2014, 11:59pm

In this project, you'll write software that stitches multiple images of a scene together into a panorama automatically. A panorama is a composite image that has a wider field of view than a single image, and can combine images taken at different times for interesting effects.

Your image stitcher will, at a minimum, do the following:

@osdf
osdf / keybase.md
Last active Aug 29, 2015
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am osdf on github.
  • I am osi (https://keybase.io/osi) on keybase.
  • I have a public key whose fingerprint is 28F9 8669 C94F C777 3AFC A7DD 926D C391 FA00 DA27

To claim this, I am signing this object:

@osdf
osdf / gist:5133737
Created Mar 11, 2013
Playing with basic MCMC.
View gist:5133737
"""
Some python code for
Markov Chain Monte Carlo and Gibs sampling
by Bruce Walsh
"""
import numpy as np
import numpy.linalg as npla
@osdf
osdf / logreg_adv_index.lua
Created Dec 3, 2012
First steps with torch -- logistic regression
View logreg_adv_index.lua
require 'torch'
require 'nn'
require 'optim'
trainset = torch.load("mnist.t7/train_32x32.t7", "ascii")
trainset.data = trainset.data:resize(60000, 32*32)
trainset.data = trainset.data:double()
test = torch.load("mnist.t7/test_32x32.t7", "ascii")
test.data = test.data:resize(10000, 32*32)
@osdf
osdf / test_numpy.py
Created Oct 5, 2012
Testing numpy and scipy setups
View test_numpy.py
#!/usr/bin/env python
import numpy
import sys
import timeit
try:
import numpy.core._dotblas
print 'FAST BLAS'
except ImportError:
print 'slow blas'
View gist:2397975
#! /usr/bin/env python
import numpy
import time
import scipy.linalg as linalg
try:
import numpy.core._dotblas
print 'Using ATLAS:'
except ImportError:
print 'No ATLAS:'
@osdf
osdf / seq_lr.py
Created May 19, 2011
Interactive sequential linear regression
View seq_lr.py
#!/usr/bin/env python
"""
__author__: Martin Felder
Demo for sequential bayesin learning
for linear regression models. See
Chapter 3.3 of 'Pattern recognition
and machine learning' by Chris Bishop, 2001
"""
@osdf
osdf / beta.py
Created May 3, 2011
Plot beta distribution, parameters a and b are provided via cmd line.
View beta.py
import sys
import scipy as sp
from scipy.special import gamma
import pylab
a = float(sys.argv[1])
b = float(sys.argv[2])
You can’t perform that action at this time.