generalized uint and link contruction methods from rbm to ann