Torch/Lua Implementation for a Sigmoid Belief Network\