diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-02-01 10:41:20 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-02-01 10:41:20 +0100 |
commit | d5a256640e60c7ed3211c57e3a22bf47af5dfc43 (patch) | |
tree | e376f5210d3b08c250929d8088bbfaa347304130 | |
parent | 5bc48878c409a7bdc3d1d7c6ffef331dc8b801b2 (diff) |
compute_param_statistics: Note that 'param' must also be set
-rw-r--r-- | lib/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils.py b/lib/utils.py index e9e347e..7c28c91 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -39,6 +39,10 @@ def compute_param_statistics(by_name, by_param, parameter_names, arg_count, stat arguments: by_name -- ground truth partitioned by state/transition name. by_name[state_or_trans][attribute] must be a list or 1-D numpy array. + by_name[state_or_trans]['param'] must be a list of parameter values + corresponding to the ground truth, e.g. [[1, 2, 3], ...] if the + first ground truth element has the (lexically) first parameter set to 1, + the second to 2 and the third to 3. by_param -- ground truth partitioned by state/transition name and parameters. by_name[(state_or_trans, *)][attribute] must be a list or 1-D numpy array. parameter_names -- list of parameter names, must have the same order as the parameter |