Machine learning approach for longitudinal spin fluctuation effects in bcc Fe at ${T}_{c}$ and under Earth-core conditions