Merge pull request #2308 from pprett/gbrt-check-supported-loss

GBRT checks if ``loss`` is in self.supported_loss
Added tests for GBRT stability
Compute threshold using a / 2 + b / 2  instead of (a + b) / 2 .
remove unnecessary code changes