Utilizing machine learning for accurate field calculation of trapezoidal cross-section ring magnet | Synapse