function G = configuration_goodness(rbm_w, visible_state, hidden_state) % is a matrix of size