Commit b5c348c0 authored by Malthe Kjær Bisbo's avatar Malthe Kjær Bisbo
Browse files

Added further documentation, fixed problem with restart option, added gauss_kernel hessian

parent f1210e0d
......@@ -94,8 +94,9 @@ class population():
return self.pop[t].copy()
def get_structure_pair(self):
t1 = np.random.permutation(len(self.pop))[0]
t2 = np.random.permutation(len(self.pop))[0]
t1, t2 = np.random.permutation(len(self.pop))[:2]
#t1 = np.random.permutation(len(self.pop))[0]
#t2 = np.random.permutation(len(self.pop))[0]
structure_pair = [self.pop[t1].copy(), self.pop[t2].copy()]
return structure_pair
......
......@@ -173,7 +173,8 @@ class gauss_kernel(kernel):
Y = self.apply_eta(Y)
dd_df = 2*(X - Y)
dk_df = np.multiply(dK_dd, dd_df)
#dk_df = np.multiply(dK_dd, dd_df)
dk_df = np.multiply(dK_dd.T, dd_df)
return dk_df
def kernel_hessian(self, X,Y):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment