Learning phase transitions in the ferrimagnetic GdFeCo alloy