summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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.