Skip to content

Commit 0774f68

Browse files
committed
#98 changed order at Neighborhood::random
1 parent fdfad84 commit 0774f68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/ch/idsia/crema/inference/approxlp1/Neighbourhood.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ public Solution move(Solution from, Move doing) {
6262
private BayesianFactor random(GenericFactor factor) {
6363
if (factor instanceof ExtensiveLinearFactor) {
6464
return new ExtensiveLinearToRandomBayesian().apply((ExtensiveLinearFactor<?>) factor);
65+
// TODO: issue #98, make this work without non-negative constraints
66+
//} else if (factor instanceof SeparateHalfspaceFactor) {
67+
// return new HalfspaceToRandomBayesianFactor().apply((SeparateHalfspaceFactor) factor);
6568
} else if (factor instanceof SeparateLinearFactor) {
6669
return new SeparateLinearToRandomBayesian().apply((SeparateLinearFactor<?>) factor);
67-
} else if (factor instanceof SeparateHalfspaceFactor) {
68-
return new HalfspaceToRandomBayesianFactor().apply((SeparateHalfspaceFactor) factor);
6970
} else if (factor instanceof BayesianFactor) {
7071
return (BayesianFactor) factor;
7172
}

0 commit comments

Comments
 (0)