diff options
author | wreise <wojciech.reise@epfl.ch> | 2022-06-05 16:59:02 +0200 |
---|---|---|
committer | wreise <wojciech.reise@epfl.ch> | 2022-06-05 16:59:02 +0200 |
commit | 42b18e60e418f4078cd6406dcc202b696798c844 (patch) | |
tree | 3e9da133ad12931454393c1bd3bbfbf3203e9afa /src/python/gudhi/representations | |
parent | a70ad064ac3e0aee5c9b8084d35b7ce329c6bddc (diff) |
Import pykeops locally in Silhouette and Lanscapes
Diffstat (limited to 'src/python/gudhi/representations')
-rw-r--r-- | src/python/gudhi/representations/vector_methods.py | 2 |
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)", |