def weight(self, weights):
        """Applies weighted mean to models.

        Parameters
        ----------
        weights : list

        Returns
        -------
        np.ndarray

        Examples
        ----------
        >>> pipeline = ModelsPipeline(model_rf,model_lr)
        >>> pipeline.weight([0.8,0.2])
        """
        return self.apply(lambda x: np.average(x, axis=0, weights=weights))