code
stringlengths
3
6.57k
plt.show()
useInference(self, newInf)
inf.FITC_Laplace()
inf.FITC_EP()
Exception('Possible inf values are "Laplace", "EP".')
useLikelihood(self,newLik)
lik.Laplace()
inf.FITC_EP()
Exception('Possible lik values are "Laplace".')
GPC_FITC(GP_FITC)
__init__(self)
super(GPC_FITC, self)
__init__()
mean.Zero()
cov.RBF()
lik.Erf()
inf.FITC_EP()
opt.Minimize(self)
setOptimizer(self, method, num_restarts=None, min_threshold=None, meanRange=None, covRange=None, likRange=None)
if (num_restarts!=None)
or (min_threshold!=None)
pyGPs.Optimization.conf.random_init_conf(self.meanfunc,self.covfunc,self.likfunc)
opt.Minimize(self,conf)
opt.SCG(self,conf)
opt.CG(self,conf)
opt.BFGS(self,conf)
plot(self,x1,x2,t1,t2,axisvals=None)
are (only)
plt.figure()
plt.plot(x1[:,0], x1[:,1], 'b+', markersize = 12)
plt.plot(x2[:,0], x2[:,1], 'r+', markersize = 12)
plt.plot(self.u[:,0],self.u[:,1],'ko', markersize=12)
plt.contour(t1, t2, np.reshape(np.exp(self.lp)
fig.colorbar(pc)
plt.grid()
plt.axis(axisvals)
plt.show()
useInference(self, newInf)
inf.FITC_Laplace()
Exception('Possible inf values are "Laplace".')
useLikelihood(self,newLik)
likelihood. (Not used in this version)
Exception("Logistic likelihood is currently not implemented.")
Exception('Possible lik values are "Logistic".')
beam.typehints.with_input_types(beam.Pipeline)
beam.typehints.with_output_types(tf.train.Example)
os.path.join(input_base_uri, split_pattern)
TODO(jyzhao)
beam.io.ReadFromParquet(parquet_pattern)
beam.Map(utils.dict_to_example)
Executor(BaseExampleGenExecutor)
tf.train.Feature()
external_input(parquet_dir_path)
GetInputSourceToExamplePTransform(self)
Copyright (c)
complex_case_repr(*args)
s (%s)
str(x)
type(x)
test_builtin(object)
test_slice(self)
len(test_str)
choices.extend(numbers)
choices.extend([-1 * x for x in numbers])
list(test_str)
str(x)
str(y)
str(z)
exec(line)
printwith("case", "del l[%s:%s:%s]" % (str(x)
str(y)
str(z)
printwith("same", eval("l")
eval("len(l)
test_xrange(self)
choices.extend(numbers)
choices.extend([-1 * x for x in numbers])
xrange(%s, %s, %s)
str(x)
str(y)
str(z)
printwith("case", line)
eval(line)
len(xr)
printwith("same", xr, xl, first, last, first2, last2)
printwith("same", sys.exc_info()
test_complex_ctor_str(self)
printwith("case", complex_case_repr(s)
complex(s)
printwithtype(c)
printwith("same", sys.exc_info()
sys.exc_info()
printwith("case", complex_case_repr(s)
complex(s)
printwithtype(c)
printwith("same", sys.exc_info()
sys.exc_info()
s2.startswith("+")
s2.startswith("-")
printwith("case", complex_case_repr(s)