File tree 2 files changed +7
-0
lines changed
pomdp_py/representations/distribution
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ Changelog
3
3
4
4
Best viewed on `the website <https://h2r.github.io/pomdp-py/html/changelog.html >`_.
5
5
6
+ Version 1.3.0.2 (pending)
7
+ -------------------------
8
+ * bug fix in :py:mod: `~pomdp_py.representations.distribution.particles ` (in :code: `add `)
9
+
6
10
Version 1.3.0.1 (09/30/2021)
7
11
----------------------------
8
12
Original file line number Diff line number Diff line change @@ -97,9 +97,11 @@ cdef class WeightedParticles(GenerativeDistribution):
97
97
return value
98
98
99
99
def mpe (self ):
100
+ print (self ._hist_valid)
100
101
if not self ._hist_valid:
101
102
self ._hist = self .get_histogram()
102
103
self ._hist_valid = True
104
+ print (self ._hist)
103
105
return max (self ._hist, key = self ._hist.get)
104
106
105
107
def __iter__ (self ):
@@ -165,6 +167,7 @@ cdef class Particles(WeightedParticles):
165
167
self ._particles.append((particle, None ))
166
168
self ._values.append(particle)
167
169
self ._weights.append(None )
170
+ self ._hist_valid = False
168
171
169
172
@property
170
173
def particles (self ):
You can’t perform that action at this time.
0 commit comments