Complete decision tree and gradient descent functions | Goldman Sachs