Skip to content

Commit c5861ed

Browse files
committed
fixing constraint lookup
1 parent 9492049 commit c5861ed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/RefinementTree.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,12 @@ namespace prlearn {
8888
}
8989
}
9090
else {
91-
size_t j = 0;
9291
for(size_t i = 0; i < n_labels; ++i)
9392
{
93+
size_t j = 0;
9494
for(;j < _mapping.size() && _mapping[j]._label < next_labels[i]; ++j) {};
95-
if(j >= _mapping.size()) return val;
96-
if(_mapping[j]._label != next_labels[i])
97-
continue;
95+
if(j >= _mapping.size()) continue;
96+
if(_mapping[j]._label != next_labels[i]) continue;
9897
const auto& res = _mapping[j];
9998
auto node = _nodes[res._nid].get_leaf(point, res._nid, _nodes);
10099
auto v = _nodes[node]._predictor._q.avg();

0 commit comments

Comments
 (0)