(y, splits)
| 21 | |
| 22 | |
| 23 | def mse_criterion(y, splits): |
| 24 | y_mean = np.mean(y) |
| 25 | return -sum( |
| 26 | [ |
| 27 | np.sum((split - y_mean) ** 2) * (float(split.shape[0]) / y.shape[0]) |
| 28 | for split in splits |
| 29 | ] |
| 30 | ) |
| 31 | |
| 32 | |
| 33 | def xgb_criterion(y, left, right, loss): |
nothing calls this directly
no outgoing calls
no test coverage detected