Skip to content
Snippets Groups Projects
Commit f4f4d6c9 authored by Chad Hanna's avatar Chad Hanna
Browse files

treebank: config 4

parent c34fd0a8
No related branches found
No related tags found
No related merge requests found
......@@ -195,8 +195,8 @@ class Metric(object):
#min_d2 = numpy.finfo(numpy.float32).eps * 1
#max_d2 = numpy.finfo(numpy.float32).eps * 4
min_d2 = 1e-6
max_d2 = 1e-5
min_d2 = 5e-7
max_d2 = 2e-6
# make the vector to solve for the metric by choosing
# either a principle axis or a bisector depending on if
......
......@@ -224,10 +224,10 @@ class Node(object):
q = self.cube.center[0] / self.cube.center[1]
if (coord_volume > max_coord_vol):
numtmps *= 1
if (self.cube.constraint_func(self.cube.vertices + [self.cube.center]) and (numtmps > split_num_templates or ((numtmps > split_num_templates/3.) and not (1./vtol < par_vratio < vtol)))):
if (self.cube.constraint_func(self.cube.vertices + [self.cube.center]) and (numtmps > split_num_templates or ((numtmps > split_num_templates/2.) and not (1./vtol < par_vratio < vtol)))):
self.template_count[0] = self.template_count[0] + 1
bifurcation += 1
if numtmps < 5**len(size) and (1./vtol < par_vratio < vtol):
if numtmps < 1**len(size) and (1./vtol < par_vratio < vtol):
left, right = self.cube.split(splitdim, reuse_metric = True)
else:
left, right = self.cube.split(splitdim)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment