def __init__(self):
# Tensor layer
self.dV = None # Tensor of the RNTN layer
self.dW = None # Regular term of the RNTN layer
self.db = None # Bias for the regular term of the RNTN layer
# Softmax
self.dWs = None # Softmax classifier
self.dbs = None # Bias of the softmax classifier
# Words << Contained in the vocab variable
self.dL = [] # List of ModelDl (index, dL_i)
评论列表
文章目录