def METHOD_NAME(self, sparsity: float):
    """
    :param sparsity: sparsity level between 0.0 and 1.0 that was the last value
        set for the given parameters
    """
    self._last_applied_sparsity = sparsity