示例#1
0
 def cost(self):
     c = AmplModel.cost(self)
     for k in c.keys():
         c[k] += self.noise_amplitude * _random()
     return c
示例#2
0
文件: noisynlp.py 项目: syarra/nlpy
 def cost(self):
     c = AmplModel.cost(self)
     for k in c.keys():
         c[k] += self.noise_amplitude * _random()
     return c