using noisy learning for two layers