Identifying Ising and percolation phase transitions based on KAN method