Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mhavasi committed Oct 16, 2018
1 parent fe95847 commit 8c6398c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions conditionals.py
@@ -1,7 +1,6 @@
# Credit to GPflow

import tensorflow as tf
import numpy as np


def base_conditional(Kmn, Kmm, Knn, f, *, full_cov=False, q_sqrt=None, white=False):
Expand Down Expand Up @@ -98,7 +97,7 @@ def conditional(Xnew, X, kern, f, *, full_cov=False, q_sqrt=None, white=False):
"""

num_data = tf.shape(X)[0] # M
Kmm = kern.K(X) + tf.eye(num_data, dtype=tf.float64) * 1e-10
Kmm = kern.K(X) + tf.eye(num_data, dtype=tf.float64) * 1e-7
Kmn = kern.K(X, Xnew)
if full_cov:
Knn = kern.K(Xnew)
Expand Down
2 changes: 0 additions & 2 deletions models.py
Expand Up @@ -4,8 +4,6 @@
import numpy as np
from kernels import SquaredExponential
from likelihoods import Gaussian
from scipy.cluster.vq import kmeans2
import tensorflow as tf

class RegressionModel(object):
def __init__(self, is_test=False, seed=0):
Expand Down

0 comments on commit 8c6398c

Please sign in to comment.