Skip to content

Commit 9bd4762

Browse files
author
Daniel Dale
committed
updated dashboards to use PPV bucket name instead of accuracy
1 parent 29a20d9 commit 9bd4762

17 files changed

+26
-26
lines changed

analysis/dashboard_constants.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@
116116
var curr_bucket = '';
117117
if (tnt_val== 'nontweets') {
118118
if (b_val == 'max') {
119-
curr_bucket = 'max_acc_nontweets';
119+
curr_bucket = 'max_ppv_nontweets';
120120
} else {
121-
curr_bucket = 'min_acc_nontweets';
121+
curr_bucket = 'min_ppv_nontweets';
122122
}
123123
} else {
124124
if (b_val == 'max') {
125-
curr_bucket = 'max_acc_tweets';
125+
curr_bucket = 'max_ppv_tweets';
126126
} else {
127-
curr_bucket = 'min_acc_tweets';
127+
curr_bucket = 'min_ppv_tweets';
128128
}
129129
}
130130
for (var i = 0; i <= stmttable_cds.data['bucket_type'].length; i++) {

analysis/gen_perf_explorer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def init_radio_groups() -> Tuple[RadioButtonGroup, ...]:
4343

4444
def init_explorer_divs(pred_stmt_dict: Dict) -> Tuple[Div, ...]:
4545
default_idx = min([i for i, (b, c) in enumerate(zip(pred_stmt_dict['bucket_type'], pred_stmt_dict['tp']))
46-
if b == 'max_acc_nontweets' and c == 1])
46+
if b == 'max_ppv_nontweets' and c == 1])
4747
word_import_div = Div(text=pred_stmt_dict['pred_exp_attr_tups'][default_idx][1], height_policy='max',
4848
width_policy='max', width=300, min_height=20, align='start', margin=(5, 5, 5, 5),
4949
css_classes=['box', 'word_import'])

analysis/gen_pred_explorer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def init_radio_groups() -> Tuple[RadioButtonGroup, ...]:
3939

4040
def init_explorer_divs(pred_stmt_dict: Dict) -> Tuple[Div, ...]:
4141
default_idx = min([i for i, (b, c) in enumerate(zip(pred_stmt_dict['bucket_type'], pred_stmt_dict['tp']))
42-
if b == 'max_acc_nontweets' and c == 1])
42+
if b == 'max_ppv_nontweets' and c == 1])
4343
word_import_div = Div(text=pred_stmt_dict['pred_exp_attr_tups'][default_idx][1], height_policy='max',
4444
width_policy='max', width=300, min_height=20, align='start', margin=(5, 5, 5, 5),
4545
css_classes=['box', 'word_import'])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
<div class="bk-root" id="28ac4802-a50c-4562-abd4-9345f22fdc39" data-root-id="1484"></div>
2+
<div class="bk-root" id="44126ec3-9da9-45e1-9ce0-730cefe188d5" data-root-id="1484"></div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
<div class="bk-root" id="7a1c472c-e15b-45e1-b228-2fc5e940ee52" data-root-id="1001"></div>
2+
<div class="bk-root" id="8ae967fd-a663-4b79-b0a5-00e8ac3bf43e" data-root-id="1001"></div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
<div class="bk-root" id="9167c463-467e-488d-8876-719396a2bb5b" data-root-id="1011"></div>
2+
<div class="bk-root" id="2e27f9df-84f9-4432-b71e-cb60fcd4505a" data-root-id="1011"></div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
<div class="bk-root" id="0b0a629e-f6d2-42e9-b9ac-12c87649f67a" data-root-id="1012"></div>
2+
<div class="bk-root" id="70b5bcbe-fd42-420a-84f5-beba5fc8ce42" data-root-id="1012"></div>

docs/_includes/bokeh_viz/perf_explorer_script.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
<div class="bk-root" id="748ef736-950e-4e15-a017-6695f562ea4f" data-root-id="1002"></div>
3-
<div class="bk-root" id="ca17c0fb-0b59-45cc-86e7-1d573ceb80e5" data-root-id="1003"></div>
4-
<div class="bk-root" id="32e666b9-f3b0-4f1a-97e1-9ee0a38d1cb7" data-root-id="1004"></div>
2+
<div class="bk-root" id="4e7266ce-8469-466d-9c7f-c85d1fc359f3" data-root-id="1002"></div>
3+
<div class="bk-root" id="19606677-f99c-426a-b22c-590960b22f8c" data-root-id="1003"></div>
4+
<div class="bk-root" id="27afd8cc-1c66-4198-9da1-93bd74d42a3c" data-root-id="1004"></div>

docs/_includes/bokeh_viz/stmt_explorer_script.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)