File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
requirements = [
9
9
"numpy" ,
10
10
"scipy" ,
11
- "gpflow>=2.1.0 " ,
11
+ "gpflow>=2.1.4 " ,
12
12
"tensorflow>=2.0" ,
13
13
]
14
14
15
15
setup (
16
16
name = "vbpp" ,
17
- version = "0.0.2 " ,
17
+ version = "0.1.0 " ,
18
18
author = "ST John" ,
19
19
# author_email="",
20
20
description = "Variational Bayes for Point Processes using GPflow" ,
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def __init__(
141
141
def _Psi_matrix (self ):
142
142
Ψ = tf_calc_Psi_matrix (self .kernel , self .inducing_variable , self .domain )
143
143
psi_jitter_matrix = self .psi_jitter * tf .eye (
144
- len ( self .inducing_variable ) , dtype = default_float ()
144
+ self .inducing_variable . num_inducing , dtype = default_float ()
145
145
)
146
146
return Ψ + psi_jitter_matrix
147
147
@@ -217,7 +217,7 @@ def _elbo_integral_term(self, Kuu):
217
217
# int_var_fx = γ |T| + trace_terms
218
218
# trace_terms = - Tr(Kzz⁻¹ Ψ) + Tr(Kzz⁻¹ S Kzz⁻¹ Ψ)
219
219
trace_terms = tf .reduce_sum (
220
- (Rinv_L_LT_RinvT - tf .eye (len ( self .inducing_variable ) , dtype = default_float ()))
220
+ (Rinv_L_LT_RinvT - tf .eye (self .inducing_variable . num_inducing , dtype = default_float ()))
221
221
* Rinv_Ψ_RinvT
222
222
)
223
223
You can’t perform that action at this time.
0 commit comments