def _is_list(self, list_or_slice):
        return not hasattr(list_or_slice, 'step')
Computes the gradient and the Hessian, in the case of a logistic loss.
dataset/ETHPy150Open mila-udem/fuel/fuel/utils/__init__.py/Subset._is_list--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/linear_model/logistic.py/_logistic_grad_hess