summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-07-01 10:17:30 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-07-01 10:17:30 +0200
commit40642f6127d2961a10c9cde5c7fa18cdb55b97e9 (patch)
tree7e2eb52d37fbf45daee669e08f70010f65d9a6c6 /lib
parent7d6d1984b010cd2ddb47f04065c528837b53bfba (diff)
model: add mutual_information accessor
Diffstat (limited to 'lib')
-rw-r--r--lib/model.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/model.py b/lib/model.py
index 2452af7..a221d47 100644
--- a/lib/model.py
+++ b/lib/model.py
@@ -227,6 +227,9 @@ class AnalyticModel:
return self.parameters[param_index]
return str(param_index)
+ def mutual_information(self, name, attr):
+ return self.attr_by_name[name][attr].mutual_information()
+
def get_static(self, use_mean=False):
"""
Get static model function: name, attribute -> model value.