Description
NodeIdCache: prevNodeIdsForInstances.unpersist() needs to be called at end of training.
This applies to both the ML and MLlib implementations, but it is Ok to skip the MLlib implementation since it will eventually be replaced by the ML one.