Repository navigation
MultiModel continue run - #182
Merged
Merged
Conversation
added 5 commits
August 6, 2021 18:29
4 tasks done
Codecov Report
@@ Coverage Diff @@
## master #182 +/- ##
==========================================
+ Coverage 94.96% 94.99% +0.03%
==========================================
Files 50 50
Lines 4308 4351 +43
==========================================
+ Hits 4091 4133 +42
- Misses 217 218 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Member
|
LGTM, merging if you're ready! |
Collaborator
Author
|
I was born ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MultiModelnow able to accommodate continuous runs withmodel.run(continue_run=True). It'll set initial state from previous run(s).Naturally, one can change parameters between runs, and, moreover, one can also change (noise) inputs in between runs.
E.g. one can start the ALN model with no noise for 2 seconds, then continue with Ornstein-Uhlenbeck and finally end it with sinusoidal input. Of course, one can change parameters in between.
Moreover, one last addition: some shortcuts for ease of access:
model.num_state_variables- return total number of state variables in theMultiModelmodel.num_noise_variables- return the total number of variables that accept noise (e.g. in ALN node it's 2)model.noise_input- return or set the full input to the model (list of lengthnum_noise_variables)Therefore, changing (noise) inputs for
MultiModelwas never easier: