Using Convolutional Neural Networks for the Helicity Classification of Magnetic Fields