def GetData(self):
    self.state.assign(self.data)
    h = self.hyperparams
    self.state.sum(axis=0, target=self.NN)
    self.NN.add(self.tiny)  # To deal with documents of 0 words.
    if h.multiplicative_prior > 0:
      self.NN.mult(1 + h.multiplicative_prior)
      self.state.mult(1 + h.multiplicative_prior)
    if h.additive_prior > 0:
      self.state.div_by_row(self.NN)
      self.NN.add(h.additive_prior)
      self.state.mult_by_row(self.NN)
    if h.adaptive_prior > 0:
      self.state.div_by_row(self.NN)
      self.state.mult(h.adaptive_prior)
      self.NN.assign(h.adaptive_prior)
dataset/ETHPy150Open nitishsrivastava/deepnet/deepnet/replicated_softmax_layer.py/ReplicatedSoftmaxLayer.GetData/original