Make members private.
Use RBM to initialize hidden layer.

There is still a bug in the code. The RBM layer is not cleaned properly.