Learning in parallel networks: simulating learning in a probabilistic system