Efficient machine learning using partitioned restricted Boltzmann machines