That's what I did before in 6b448754fb9d836851499c153d0710663d0ce124 but I agree with @vene that it's:
 * more readable this way,
 * not _much_ slower for this example size, particularly compared to the RBM training
 * people can more easily tinker with the direction vectors and "learn-by-tinkering-with-the-example"