MCPcopy Create free account
hub / github.com/caelan/pddlstream / decreaseUniformWeight

Method decreaseUniformWeight

examples/discrete_belief/dist.py:850–857  ·  view source on GitHub ↗
(self, factor=2.0)

Source from the content-addressed store, hash-verified

848
849 # Decrease the amount assigned to the uniform and renormalize others
850 def decreaseUniformWeight(self, factor=2.0):
851 weights = [c[1] for c in self.components]
852 oldWeightSum = sum(weights)
853 self.uniformWeight = min(self.uniformWeight / factor, 0.999)
854 rweights = [w * (1 - self.uniformWeight) / oldWeightSum \
855 for w in weights]
856 for (c, w) in zip(self.components, rweights):
857 c[1] = w
858
859 def kalmanObsUpdateNoSE(self, obs, obsSigma):
860 thing = GMU([[d.kalmanObsUpdate(obs, obsSigma), p] \

Callers 2

kalmanObsUpdateMethod · 0.95
kalmanObsUpdateNoSEMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected