Skip to content

Commit 9fcc31d

Browse files
committed
Remove benchmark dependency on tree_icml
1 parent 773bb0e commit 9fcc31d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

manify/utils/benchmarks.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@
2525
from ..predictors.perceptron import ProductSpacePerceptron
2626
from ..predictors.svm import ProductSpaceSVM
2727

28-
# from ..predictors.decision_tree import ProductSpaceDT, ProductSpaceRF
29-
from ..predictors.tree_icml import (
30-
ProductSpaceDT,
31-
ProductSpaceRF,
32-
SingleManifoldEnsembleRF,
33-
)
28+
from ..predictors.decision_tree import ProductSpaceDT, ProductSpaceRF
3429

3530

3631
def _score(
@@ -254,7 +249,7 @@ def benchmark(
254249
if adj is not None:
255250
A_hat = get_A_hat(adj).detach()
256251
else:
257-
dists = pdists ** 2
252+
dists = pdists**2
258253
dists_train = dists[train_idx][:, train_idx]
259254
dists /= dists_train[torch.isfinite(dists_train)].max()
260255
A_hat = get_A_hat(dists).detach()

0 commit comments

Comments
 (0)