(self, y)
| 687 | self.loss = loss # 损失函数 |
| 688 | |
| 689 | def _split(self, y): |
| 690 | # y 包含 y_true 在左半列,y_pred 在右半列 |
| 691 | col = int(np.shape(y)[1]/2) |
| 692 | y, y_pred = y[:, :col], y[:, col:] |
| 693 | return y, y_pred |
| 694 | |
| 695 | def _gain(self, y, y_pred): |
| 696 | # 计算信息 |
no outgoing calls
no test coverage detected