Weight Space Representation Learning with Neural Fields