You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if the behavior after a monitor is sliced is as expected, in particular, for the case of a LoggingMonitor, with a custom label.
>>> import mystic as my
>>> m = my.monitors.VerboseLoggingMonitor(1, 1, 1, label='foo')
Produces:
# Tue Dec 29 09:40:22 2020
# ___#___ __foo__ __params__
Which is expected. The custom label works as expected.
Let's add some entries...
>>> m([1,2,3],4)
Generation 0 has foo: 4.000000
Generation 0 has fit parameters:
[1, 2, 3]
>>> m([1,2,4],5)
Generation 1 has foo: 5.000000
Generation 1 has fit parameters:
[1, 2, 4]
Note that the monitors both share the same file... which is potentially ok.
Note that the custom label is not transferred. I would expect that it should.
This should probably be fixed. Now, let's add some entries, using each of the
monitors...
>>> m([1,2,5],6)
Generation 2 has foo: 6.000000
Generation 2 has fit parameters:
[1, 2, 5]
>>> x([1,2,6],7)
Generation 1 has foo: 7.000000
Generation 1 has fit parameters:
[1, 2, 6]
The last entry in the log is from the sliced monitor, where the step of 1 is expected (due to the slice of [:1])... but as we write to the same log, it's a bit confusing as to which entry is from the sliced monitor and which is from the original. Should the slice be given an id, so that it's distinct, and thus can easily be separated upon plotting, etc? I expect so.
The text was updated successfully, but these errors were encountered:
I'm not sure if the behavior after a monitor is sliced is as expected, in particular, for the case of a LoggingMonitor, with a custom label.
Produces:
Which is expected. The custom label works as expected.
Let's add some entries...
Produces:
This is also as expected.
So, let's slice the monitor...
>>> x = m[:1]
Produces:
Note that the monitors both share the same file... which is potentially ok.
Note that the custom label is not transferred. I would expect that it should.
This should probably be fixed. Now, let's add some entries, using each of the
monitors...
Produces:
The last entry in the log is from the sliced monitor, where the step of
1
is expected (due to the slice of[:1]
)... but as we write to the same log, it's a bit confusing as to which entry is from the sliced monitor and which is from the original. Should the slice be given anid
, so that it's distinct, and thus can easily be separated upon plotting, etc? I expect so.The text was updated successfully, but these errors were encountered: