summaryrefslogtreecommitdiff
path: root/src/python/gudhi/representations/vector_methods.py
diff options
context:
space:
mode:
authorwreise <wojciech.reise@epfl.ch>2022-06-05 16:59:02 +0200
committerwreise <wojciech.reise@epfl.ch>2022-06-05 16:59:02 +0200
commit42b18e60e418f4078cd6406dcc202b696798c844 (patch)
tree3e9da133ad12931454393c1bd3bbfbf3203e9afa /src/python/gudhi/representations/vector_methods.py
parenta70ad064ac3e0aee5c9b8084d35b7ce329c6bddc (diff)
Import pykeops locally in Silhouette and Lanscapes
Diffstat (limited to 'src/python/gudhi/representations/vector_methods.py')
-rw-r--r--src/python/gudhi/representations/vector_methods.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/representations/vector_methods.py b/src/python/gudhi/representations/vector_methods.py
index acc62943..b0843120 100644
--- a/src/python/gudhi/representations/vector_methods.py
+++ b/src/python/gudhi/representations/vector_methods.py
@@ -10,7 +10,6 @@
# - 2021/11 Vincent Rouvreau: factorize _automatic_sample_range
import numpy as np
-from pykeops.numpy import Genred
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.exceptions import NotFittedError
from sklearn.preprocessing import MinMaxScaler, MaxAbsScaler
@@ -218,6 +217,7 @@ class Silhouette(BaseEstimator, TransformerMixin):
self.weight, self.resolution, self.sample_range = weight, resolution, sample_range
self.im_range = None
+ from pykeops.numpy import Genred
silhouette_formula = "normalized_weights * ReLU(heights - Abs(x_values - midpoints))"
variables = [
"normalized_weights = Vi(1)",