Skip to main content

eval_tree

Function eval_tree 

Source
pub fn eval_tree(tree: &EmlTree, data: &Array2<f64>) -> Result<Array1<f64>>
Expand description

Evaluate an EmlTree forward through autograd over the given data.

Returns predictions of length data.nrows().

ยงErrors

Returns PhopError::Eval if the autograd evaluation fails, or PhopError::NumericalInstability if the output contains non-finite values.