-
Notifications
You must be signed in to change notification settings - Fork 542
/
application.conf
67 lines (58 loc) · 1.96 KB
/
application.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
deepdive {
db.default: {
driver : "org.postgresql.Driver"
url : "jdbc:postgresql://"${PGHOST}":"${PGPORT}"/"${DBNAME} #"
user : ${PGUSER}
password : ${PGPASSWORD}
dbname : ${DBNAME}
host : ${PGHOST}
port : ${PGPORT}
}
schema.variables {
label1.val: Boolean
label2.val: Boolean
}
# extraction.extractors: {
# No extractors needed: all data prepared
# }
inference.factors: {
label1 {
input_query: """
SELECT features.word_id AS "features.word_id",
features.feature_id AS "features.feature_id",
features.feature_val AS "features.feature_val",
label1.id AS "label1.id",
label1.val AS "label1.val"
FROM features INNER JOIN label1
ON features.word_id = label1.wid
WHERE features.feature_val = TRUE
"""
# features that are true imply the label.
function : "Imply(label1.val)"
weight : "?(features.feature_id)"
}
label2 {
input_query: """
SELECT features.word_id AS "features.word_id",
features.feature_id AS "features.feature_id",
features.feature_val AS "features.feature_val",
label2.id AS "label2.id",
label2.val AS "label2.val"
FROM features INNER JOIN label2
ON features.word_id = label2.wid
WHERE features.feature_val = TRUE
"""
function : "Imply(label2.val)"
weight : "?(features.feature_id)"
}
}
calibration: {
holdout_query: """
INSERT INTO dd_graph_variables_holdout(variable_id) SELECT id FROM label1 WHERE wid < 300;
INSERT INTO dd_graph_variables_holdout(variable_id) SELECT id FROM label2 WHERE wid < 300
"""
}
calibration.holdout_fraction: 0.5
# sampler.sampler_cmd: "util/sampler-dw-mac gibbs"
sampler.sampler_args: "-l 300 -s 1 -i 500 --alpha 0.1 "
}