From 87cc1763c033c8750f0f662d0e846783593e99d5 Mon Sep 17 00:00:00 2001
From: Antonio Andriella <aandriella@iri.upc.edu>
Date: Tue, 27 Oct 2020 08:42:39 +0100
Subject: [PATCH] change bn models

---
 bn_agent_model/agent_assistive_model.bif | 70 ++++++------------------
 bn_persona_model/user_action_model.bif   | 38 +++++--------
 2 files changed, 29 insertions(+), 79 deletions(-)

diff --git a/bn_agent_model/agent_assistive_model.bif b/bn_agent_model/agent_assistive_model.bif
index c603ca9..e3b6291 100644
--- a/bn_agent_model/agent_assistive_model.bif
+++ b/bn_agent_model/agent_assistive_model.bif
@@ -2,12 +2,7 @@ network agent_assistive_model {
 }
 
 %VARIABLES DEFINITION
-variable reactivity {
-  type discrete [3] {slow, medium, fast};
-}
-variable memory {
-  type discrete[3] {low, medium, high};
-}
+
 variable agent_assistance {
   type discrete [ 6 ] { lev_0, lev_1, lev_2, lev_3, lev_4, lev_5};
 }
@@ -18,13 +13,10 @@ variable game_state {
   type discrete [ 3 ] { beg, mid, end };
 }
 
-variable user_capability {
-  type discrete [ 3 ] { very_mild, mild, severe };
-}
 
 %INDIVIDUAL PROBABILITIES DEFINITION
 probability ( agent_assistance ) {
-  table 0.16, 0.17, 0.17, 0.17, 0.16, 0.17;
+  table 0.17, 0.17, 0.17, 0.17, 0.16, 0.16;
 }
 probability ( game_state ) {
   table 0.34, 0.33, 0.33;
@@ -32,56 +24,26 @@ probability ( game_state ) {
 probability ( attempt ) {
   table 0.25, 0.25, 0.25, 0.25;
 }
-probability ( user_capability ) {
-  table 0.33, 0.33, 0.34;
-}
-#CPDS 4 #SPECIFICALLY FOR THE GIVEN PATIENT
-probability ( reactivity ) {
-  table 0.34, 0.33, 0.33;
-}
-#CPDS 3 #SPECIFICALLY FOR THE GIVEN PATIENT
-probability ( memory ) {
-  table 0.33, 0.33, 0.34;
-}
 
 
 #Conditional Probabilities
 
-#CPDS X (very_mild, mild, severe)
-probability (user_capability | memory, reactivity) {
-(low, slow)  0.1, 0.2, 0.7;
-(medium, slow)  0.2, 0.6, 0.2;
-(high, slow)  0.7, 0.2, 0.1;
 
-(low, medium)  0.1, 0.3, 0.6;
-(medium, medium)  0.3, 0.6, 0.1;
-(high, medium)  0.1, 0.4, 0.5;
+probability (agent_assistance | game_state, attempt) {
 
-(low, fast)  0.3, 0.2, 0.5;
-(medium, fast)  0.7, 0.2, 0.1;
-(high, fast)  0.8, 0.1, 0.1;
-}
+(beg, att_1) 0.5, 0.3, 0.2, 0.0, 0.0, 0.0;
+(beg, att_2) 0.2, 0.3, 0.2, 0.1, 0.1, 0.1;
+(beg, att_3) 0.3, 0.2, 0.2, 0.1, 0.1, 0.1;
+(beg, att_4) 0.3, 0.3, 0.1, 0.1, 0.1, 0.1;
 
-probability (agent_assistance | user_capability) {
-(very_mild) 0.4, 0.3, 0.2, 0.1, 0.0, 0.0;
-(mild) 0.2, 0.3, 0.3, 0.1, 0.05, 0.05;
-(severe) 0.0, 0.05, 0.25, 0.3, 0.2, 0.2;
-}
+(mid, att_1) 0.5, 0.3, 0.2, 0.0, 0.0, 0.0;
+(mid, att_2) 0.2, 0.3, 0.2, 0.1, 0.1, 0.1;
+(mid, att_3) 0.3, 0.2, 0.2, 0.1, 0.1, 0.1;
+(mid, att_4) 0.3, 0.3, 0.1, 0.1, 0.1, 0.1;
 
-probability (game_state | agent_assistance) {
-(lev_0) 0.1, 0.3, 0.6;
-(lev_1) 0.2, 0.3, 0.5;
-(lev_2) 0.4, 0.3, 0.3;
-(lev_3) 0.4, 0.3, 0.3;
-(lev_4) 0.5, 0.4, 0.1;
-(lev_5) 0.5, 0.4, 0.1;
-}
+(end, att_1) 0.5, 0.3, 0.2, 0.0, 0.0, 0.0;
+(end, att_2) 0.2, 0.3, 0.2, 0.1, 0.1, 0.1;
+(end, att_3) 0.3, 0.2, 0.2, 0.1, 0.1, 0.1;
+(end, att_4) 0.3, 0.3, 0.1, 0.1, 0.1, 0.1;
 
-probability (attempt | agent_assistance) {
-(lev_0) 0.1, 0.2, 0.3, 0.4;
-(lev_1) 0.1, 0.2, 0.3, 0.4;
-(lev_2) 0.2, 0.2, 0.2, 0.4;
-(lev_3) 0.25, 0.25, 0.25, 0.25;
-(lev_4) 0.1, 0.25, 0.25, 0.4;
-(lev_5) 0.1, 0.25, 0.25, 0.4;
-}
\ No newline at end of file
+}
diff --git a/bn_persona_model/user_action_model.bif b/bn_persona_model/user_action_model.bif
index be7dfaf..24c07dd 100644
--- a/bn_persona_model/user_action_model.bif
+++ b/bn_persona_model/user_action_model.bif
@@ -2,13 +2,10 @@ network persona_model {
 }
 
 %VARIABLES DEFINITION
-variable reactivity {
+variable user_reactivity {
   type discrete [3] {slow, medium, fast};
 }
-variable memory {
-  type discrete[3] {low, medium, high};
-}
-variable attention {
+variable user_memory {
   type discrete[3] {low, medium, high};
 }
 variable agent_assistance {
@@ -42,36 +39,27 @@ probability ( user_action ) {
   table 0.33, 0.33, 0.34;
 }
 #CPDS 4 #SPECIFICALLY FOR THE GIVEN PATIENT
-probability ( reactivity ) {
+probability ( user_reactivity ) {
   table 0.34, 0.33, 0.33;
 }
 #CPDS 3 #SPECIFICALLY FOR THE GIVEN PATIENT
-probability ( memory ) {
-  table 0.33, 0.33, 0.34;
-}
-#CPDS 1 #SPECIFICALLY FOR THE GIVEN PATIENT
-probability ( attention ) {
+probability ( user_memory ) {
   table 0.33, 0.33, 0.34;
 }
 probability ( agent_feedback ) {
   table 0.5, 0.5;
 }
 
-probability ( reactivity | attention ) {
-  (low) 0.7, 0.2, 0.1;
-  (medium)  0.2, 0.5, 0.3;
-  (high)  0.1, 0.2, 0.7;
-}
 
-probability (user_action | memory, reactivity) {
-(low, slow)  0.2, 0.5, 0.3;
-(low, medium) 0.3, 0.5, 0.2;
-(low, fast) 0.4, 0.5, 0.1;
-(medium, slow) 0.5, 0.3, 0.2;
-(medium, medium) 0.55, 0.35, 0.1;
-(medium, fast) 0.6, 0.4, 0.0;
-(high, slow)  0.5, 0.4, 0.1;
-(high, medium) 0.6, 0.3, 0.1;
+probability (user_action | user_memory, user_reactivity) {
+(low, slow)  0.2, 0.2, 0.6;
+(low, medium) 0.3, 0.2, 0.5;
+(low, fast) 0.4, 0.4, 0.2;
+(medium, slow) 0.3, 0.1, 0.6;
+(medium, medium) 0.4, 0.2, 0.4;
+(medium, fast) 0.6, 0.2, 0.2;
+(high, slow)  0.7, 0.1, 0.2;
+(high, medium) 0.8, 0.1, 0.1;
 (high, fast) 0.8, 0.2, 0.0;
 }
 probability (agent_feedback | user_action) {
-- 
GitLab