Table<Label> predict(const Tree& tree, const TableView<Row>& data, size_t root) { return data.cast( [&](const Row& row) { return predict<Label>(tree, row, root); } ); }