MCPcopy Index your code
hub / github.com/MingchaoZhu/DeepLearning / _split

Method _split

code/chapter7.py:689–693  ·  view source on GitHub ↗
(self, y)

Source from the content-addressed store, hash-verified

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 # 计算信息

Callers 2

_gain_by_taylorMethod · 0.95
_approximate_updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected