cleaned up
This commit is contained in:
@@ -82,16 +82,13 @@ class RnnModel(Model):
|
|||||||
self.units.append(unit)
|
self.units.append(unit)
|
||||||
|
|
||||||
def train(self, vc: Mat, status: Status = None):
|
def train(self, vc: Mat, status: Status = None):
|
||||||
for i, unit in enumerate(self.units):
|
for unit in self.units:
|
||||||
train(unit, vc, status)
|
train(unit, vc, status)
|
||||||
# Update context portion of vc
|
# Update context portion of vc
|
||||||
vc[:, WIN*vocab_size():] = unit.forward(vc)
|
vc[:, WIN*vocab_size():] = unit.forward(vc)
|
||||||
|
|
||||||
def forward_step(self, v_curr: Mat):
|
def forward_step(self, v_curr: Mat):
|
||||||
c = np.zeros([1, H_SIZE])
|
pass
|
||||||
z = np.zeros(v_curr.shape)
|
|
||||||
for i, unit in enumerate(self.units):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def forward(self, x: Mat):
|
def forward(self, x: Mat):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user