diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-10-09 16:22:19 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-10-09 16:22:19 +0200 |
commit | 8e0d3674c9e8fcbc90eafaa390154550bbc234a6 (patch) | |
tree | 070ce2d02677fa1edf1fa38c5c828e25b907a65d /lib/model.py | |
parent | 36a4a6f2c8d7f73279a43e0926eeb09da07bff63 (diff) |
add sub-state generation
Diffstat (limited to 'lib/model.py')
-rw-r--r-- | lib/model.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/model.py b/lib/model.py index d7a9bc9..57507e7 100644 --- a/lib/model.py +++ b/lib/model.py @@ -944,7 +944,12 @@ class PTAModel: penalty = self.pelt.get_penalty_value( self.by_param[k]["power_traces"] ) - print(f" penalty: {penalty}") + print( + f" we found {penalty[1]} changepoints with penalty {penalty[0]}" + ) + self.pelt.calc_raw_states( + self.by_param[k]["power_traces"], penalty[0] + ) return None, None |