-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathregularizers.cfg
81 lines (59 loc) · 2.34 KB
/
regularizers.cfg
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# each regularizer r_i is multiplied by a non-negative tau_i and added to the likelihood formula
# tau coefficients can take either a float or a trajectory definition
# alpha_iter can take either a float or a trajectory definition
# for smoothing tau = 1 is a good choice. It simpy enables smoothing (like LDA does)
# for sparsing it is recommended, according to theory, to keep the regularizer deactivated for a number of epochs initially and then to make the tau coefficient follow a dynamic trajectory:
# 'start' indicates the number of initial dataset iterations (epochs) to keep the regularizer deactivated. Basically sets tau to 0 (zero).
# a syntax like 'linear_-1_-10 should be used to indicate a trajectory; eg the tau will start from value -1 and linearly reach -10, as the epochs progress
# EG: epoch=10, start=2, tau=linear_-5_-19 will result tau having values [0, 0, -5, -7, -9, -11, -13, -15, -17, -19] (each element corresponds to 1 epoch)
# alpha_iter evaluates to a list of additional coefficients of regularization on each iteration over document. Basically for every iteration over a document (not dataset) the user
# has the option of using a different coefficient, instead of a constant one. If float then all document passes use the same coefficient. Similarly to tau, you can input a trajectory.
# if alpha iter not set it defaults to a constant coefficient of 1
[smooth-phi] # smooths for background topics
tau = 1
[smooth-theta] # smooths for background topics
tau = 1
alpha_iter = 1
[sparse-phi] # sparses for domain topics
start = 4
tau = linear_-5_-15
[sparse-theta] # sparses for domain topics
start = 3
alpha_iter = 1
tau = linear_-3_-10
# tau = cubic_-3_-10
[label-regularization-phi-dom-cls]
tau = 100
gamma =
# Smooth Psi distributions
[smooth-phi-dom-cls]
tau = 1
[decorrelate-phi-dom-def]
tau = 1.5e+5
[decorrelate-phi-dom-cls]
tau = 1.5e+5
# can be used to expand the probability space to DxWxTxC eg author-topic model
[label-regularization-phi]
tau = 1
gamma =
[improve-coherence]
tau = 1
[label-regularization-phi-dom-all]
tau = 10000
gamma =
## DECORRELATE TOPICS
[decorrelate-phi-def]
tau = 1.5e+5
[decorrelate-phi-class]
tau = 1.5e+5
[decorrelate-phi-domain]
# tau = 1.5e+5
tau = 1.0e+5
[decorrelate-phi-background]
tau = 1.0e+5
# [decorrelate-phi-background]
# tau = 0.75e+5
[smooth-phi-bac-cls]
tau = 1
[smooth-phi-cls]
tau = 1