def get_xgb_params(self):
        """Get xgboost type parameters."""
        xgb_params = self.get_params()

        xgb_params['silent'] = 1 if self.silent else 0

        if self.nthread <= 0:
            xgb_params.pop('nthread', None)
        return xgb_params
def get_xgb_params ( self ) : xgb_params = self . get_params ( ) xgb_params [ 'silent' ] = 1 if self . silent else 0 if self . nthread <= 0 : xgb_params . pop ( 'nthread' , None ) return xgb_params
Get xgboost type parameters.