Neural network approach to magnetic dot arrays modeling