I was playing around with GAN face generation in TensorFlow the other night. The iterations turned better and better except in one …

# Category: Uncategorized

## Solutions to Exercises in Statistical Learning

I did a bit of spring cleaning and found some solutions to a course using exercises from the book The Elements of …

## Chaining function calls in Matlab

Matlab has a nice feature that lets you chain commands by treating functions as variables. This means that you can write: a …

## Saving from inside a parfor loop in Matlab

If you call save from a parfor loop in Matlab, like this for example: parfor k=1:100 foo = exp(-k); save([’myfile’,num2str(k),’.mat’],’foo’); endparfor k=1:100 …

## Making function returns in Matlab compact

I used to write this in Matlab: foo1 = zeros(1,100); foo2 = cell(1,100); for i = 1:100 [tmpFoo1, tmpFoo2] = foo ( …

## Understanding the Metropolis Hasting algorithm – A tutorial

The Problem Say you want to evaluate the expectation of a function over a random variable $$E[f(x)] = \int p(x)f(x)dx$$, or perhaps …

## The start-up evangelic

Attended the Stockholm Start-up Day 2013 event. It was really fun and the event was well organized with a good flow. It is …

## Friday secrets

www.youtube.com/watch?v=pPkNtg3Fvwk “Harry, I’m going to let you in on a little secret. Every day, once a day, give yourself a present. Don’t …

## What is a Sensory Motor Map – SMM

In robotics one often deal with combining visual input and motor kinematics. A Sensory Motor-Map(SMM) is a map between perception and action …

## Two neat LaTex tricks that will make life easier

1. Typesetting modularized LaTex files So you modularized your really long tex file, using includes or input. You find it a bit …