Machine learning domain adaptation in spin models with continuous phase transitions | Synapse