The last Deep Forest layer makes its prediction by averaging the class vectors of all its forests, then choosing the class with the largest average. This combines several forests' opinions into one answer.
Implement cascade_predict(forest_probas), which averages the forests' class vectors per sample and returns the argmax class.
Stack the list into one array, average over the forest axis, then take argmax along the class axis.
No results yet
Run your code to check it against the examples, or submit to run every test.