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: pycmtensor/expressions.py
+25-9
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
"""
2
-
The code snippet is a part of the PyCMTensor expressions module. It defines a base class for parsing and manipulating Aesara tensor expressions. The class provides methods for parsing a tensor expression to remove parentheses and tensor operators, and returns a clean list of keywords found in the expression. It also defines a base class for expression objects, which includes overloaded operators for tensor operations such as addition, subtraction, multiplication, division, and comparison.
2
+
The code snippet is a part of the PyCMTensor expressions module. It defines a base
3
+
class for parsing and manipulating Aesara tensor expressions. The class provides
4
+
methods for parsing a tensor expression to remove parentheses and tensor operators, and
5
+
returns a clean list of keywords found in the expression. It also defines a base class
6
+
for expression objects, which includes overloaded operators for tensor operations such
7
+
as addition, subtraction, multiplication, division, and comparison.
* `"glorot"`: initialization method that maintains the variance for
511
521
symmetric activation functions, e.g. sigm, tanh [^2]
512
522
513
-
[^1] He, K., Zhang, X., Ren, S. and Sun, J., 2015. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision (pp. 1026-1034).
514
-
[^2] Glorot, X. and Bengio, Y., 2010, March. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the thirteenth international conference on artificial intelligence and statistics (pp. 249-256). JMLR Workshop and Conference Proceedings.
523
+
[^1] He, K., Zhang, X., Ren, S. and Sun, J., 2015. Delving deep into
524
+
rectifiers: Surpassing human-level performance on imagenet classification.
525
+
In Proceedings of the IEEE international conference on computer vision (pp.
526
+
1026-1034).
527
+
[^2] Glorot, X. and Bengio, Y., 2010, March. Understanding the difficulty
528
+
of training deep feedforward neural networks. In Proceedings of the
529
+
thirteenth international conference on artificial intelligence and
530
+
statistics (pp. 249-256). JMLR Workshop and Conference Proceedings.
The variance covariance matrix is calculated by taking the inverse of the (negative) hessian matrix. If the inverse is undefined, returns a zero or a large finite number.
47
+
The variance covariance matrix is calculated by taking the inverse of the
48
+
(negative) hessian matrix. If the inverse is undefined, returns a zero or a
"""computes the robust variance covariance matrix given the Hessian and the BHHH matrices
59
+
"""computes the robust variance covariance matrix given the Hessian and the BHHH
60
+
matrices
51
61
52
62
Args:
53
63
hessian (numpy.ndarray): the hessian matrix
@@ -83,7 +93,9 @@ def t_test(stderr, params):
83
93
84
94
85
95
defp_value(stderr, params):
86
-
"""computes the p-value (statistical significance) of the estimated parameter using the two-tailed normal distribution, where p-value=$2(1-\\phi(|t|)$, $\\phi$ is the cdf of the normal distribution
96
+
"""computes the p-value (statistical significance) of the estimated parameter using
97
+
the two-tailed normal distribution, where p-value=$2(1-\\phi(|t|)$, $\\phi$ is
0 commit comments