Representation Learning for Classical Planning from Partially Observed Traces