You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bayesml/metatree/__init__.py
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,19 @@
4
4
r"""
5
5
The stochastic data generative model is as follows:
6
6
7
-
* :math:`\mathcal{X}` : a space of an explanatory variable (a finite set)
8
-
* :math:`\boldsymbol{x}=[x_1, \ldots, x_d] \in \mathcal{X}^d` : an explanatory variable
7
+
* :math:`\boldsymbol{x}=[x_1, \ldots, x_p, x_{p+1}, \ldots , x_{p+q}]` : an explanatory variable. The first :math:`p` variables are continuous. The other :math:`q` variables are categorical.
9
8
* :math:`\mathcal{Y}` : a space of an objective variable
10
9
* :math:`y \in \mathcal{Y}` : an objective variable
11
10
* :math:`D_\mathrm{max} \in \mathbb{N}` : the maximum depth of trees
12
-
* :math:`T` : :math:`|\mathcal{X}|`-ary regular tree whose depth is smaller than or equal to :math:`D_\mathrm{max}`, where "regular" means that all inner nodes have :math:`k` child nodes.
11
+
* :math:`T` : a tree whose depth is smaller than or equal to :math:`D_\mathrm{max}`
13
12
* :math:`\mathcal{T}` : a set of :math:`T`
14
13
* :math:`s` : a node of a tree
15
14
* :math:`\mathcal{S}` : a set of :math:`s`
16
15
* :math:`\mathcal{I}(T)` : a set of inner nodes of :math:`T`
17
16
* :math:`\mathcal{L}(T)` : a set of leaf nodes of :math:`T`
* :math:`\boldsymbol{k}=(k_s)_{s \in \mathcal{S}}` : feature assignmet vector where :math:`k_s \in \{1,2,\ldots,p+q\}`. If :math:`k_s \leq p`, the node :math:`s` has a threshold.
19
18
* :math:`\boldsymbol{\theta}=(\theta_s)_{s \in \mathcal{S}}` : a set of parameter
20
-
* :math:`s(\boldsymbol{x}) \in \mathcal{L}(T)` : a leaf node of :math:`T` corresponding to :math:`\boldsymbol{x}`
19
+
* :math:`s(\boldsymbol{x}) \in \mathcal{L}(T)` : a leaf node of :math:`T` corresponding to :math:`\boldsymbol{x}`, which is determined according to :math:`\boldsymbol{k}` and the thresholds.
0 commit comments