batch version of SelfTaught Learning