Thermally Averaged Magnetic Anisotropy Tensors via Machine Learning Based on Gaussian Moments.