Returns a new model that consists only of the given variables and nodes and their parent variables and nodes. The new model contains copies of these variables and nodes.
Parameters:
clear_state (bool, default: False) – If True, the model state will be cleared before constructing the
parental submodel, i.e., all values will be removed. This can be used to
save memory, if only the model structure is required.