Study of phase transition of Potts model with DANN