def setDiscountFactor(self, df):
        if df < 0. or df > 1.:
            raise AgentError("The discount factor should be in [0,1]")

        self._df = df
Base class signature to demonstrate API for reducing Elements,
dataset/ETHPy150Open VinF/deer/deer/base_classes/QNetwork.py/QNetwork.setDiscountFactor--crossover with--dataset/ETHPy150Open ioam/holoviews/holoviews/core/element.py/Element.reduce