Learning networks in biological systems