*4.2. Weighted*

The weighted ensemble has a similar philosophy behind it. Instead of equally merging the outputs, we merge the outputs by co-calculating a weight. Given a set of weighted tensors and a vector-like object, we sum the product of tensor elements over a single axis, as specified by the one-dimensional vector, Figure **??**.

**Figure 7.** The Weighted Ensemble Architecture.

The 'fitting' process of the second ensemble is a heuristic process for the best possible weights combination, i.e., looking for the global minimum of a multivariate function. We propose differential evolution [**?** ] to scan the large space of five distinct weights, Algorithm **??**.

### **Algorithm 2** Differential Evolution Pseudo-code

