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
During a meeting it was suggested that maybe we should expand the internal state to be able to store the state for a window into the past.
This could work by changing the internal state to instead of being a single vector be a matrix where the number of rows and columns are the window length and the number of states respectively. When the state is updated after the ml model is run the state would first be shifted one row over so that the oldest state is forgotten and the newest remembered state is duplicated in the first two rows. Then the first row in the state in overwritten by the state calculated from the current output from the ml model.
This would make it easy for the user of the tool to expand the state to be remembered for several time steps.
However, this is possible to do without implementing the feature by being clever with how the model is implemented and how the state is manipulated.
An example to illustrate:
Say we have two states s1 and s2. Where s1_i and s2_i represents the two states at time step i.
At time step 2 the current state could be:
state = [s1_1, s2_1, s1_0, s2_0]
The ml model could then manipulate the state inside, calculate s1_2 and s2_2 and output the state as follows:
output = [s1_2, s2_2, s1_1, s2_1]
The output can then be stored as state. This would result in the internal state always containing the state values for the previous two time steps. This could be expanded to an arbitrary number of states and window length. It is maybe a bit clunky to use, but it is possible.
The decision about if this feature should be implemented may depend on how often the user would want to store the state for a window in time.
The text was updated successfully, but these errors were encountered:
It is not decided if this should be implemented!
During a meeting it was suggested that maybe we should expand the internal state to be able to store the state for a window into the past.
This could work by changing the internal state to instead of being a single vector be a matrix where the number of rows and columns are the window length and the number of states respectively. When the state is updated after the ml model is run the state would first be shifted one row over so that the oldest state is forgotten and the newest remembered state is duplicated in the first two rows. Then the first row in the state in overwritten by the state calculated from the current output from the ml model.
This would make it easy for the user of the tool to expand the state to be remembered for several time steps.
However, this is possible to do without implementing the feature by being clever with how the model is implemented and how the state is manipulated.
An example to illustrate:
Say we have two states s1 and s2. Where s1_i and s2_i represents the two states at time step i.
At time step 2 the current state could be:
state = [s1_1, s2_1, s1_0, s2_0]
The ml model could then manipulate the state inside, calculate s1_2 and s2_2 and output the state as follows:
output = [s1_2, s2_2, s1_1, s2_1]
The output can then be stored as state. This would result in the internal state always containing the state values for the previous two time steps. This could be expanded to an arbitrary number of states and window length. It is maybe a bit clunky to use, but it is possible.
The decision about if this feature should be implemented may depend on how often the user would want to store the state for a window in time.
The text was updated successfully, but these errors were encountered: