The neural network two-scale model of the magnetic dot array