diff options
author | mathieu <mathieu.carriere3@gmail.com> | 2019-11-09 21:01:44 -0500 |
---|---|---|
committer | mathieu <mathieu.carriere3@gmail.com> | 2019-11-09 21:01:44 -0500 |
commit | 5372648ccc80e9754e1d2057c5bdba9724810da5 (patch) | |
tree | bef746b37d07b2e265b4a3fdbf0df767096b1e56 /src | |
parent | dc9771161ec5155030dad9301cd9af79f13005b3 (diff) |
added copyrights
Diffstat (limited to 'src')
-rw-r--r-- | src/python/gudhi/sktda/kernel_methods.py | 13 | ||||
-rw-r--r-- | src/python/gudhi/sktda/metrics.py | 11 | ||||
-rw-r--r-- | src/python/gudhi/sktda/preprocessing.py | 11 | ||||
-rw-r--r-- | src/python/gudhi/sktda/vector_methods.py | 11 |
4 files changed, 33 insertions, 13 deletions
diff --git a/src/python/gudhi/sktda/kernel_methods.py b/src/python/gudhi/sktda/kernel_methods.py index b8d4ab3a..0a0d333d 100644 --- a/src/python/gudhi/sktda/kernel_methods.py +++ b/src/python/gudhi/sktda/kernel_methods.py @@ -1,6 +1,11 @@ -""" -@author: Mathieu Carriere -All rights reserved +""" This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. + See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. + Author(s): Mathieu Carrière + + Copyright (C) 2018-2019 Inria + + Modification(s): + - YYYY/MM Author: Description of the modification """ import numpy as np @@ -140,7 +145,7 @@ class PersistenceScaleSpaceKernel(BaseEstimator, TransformerMixin): """ self.diagrams_ = list(X) for i in range(len(self.diagrams_)): - op_D = np.matmul(self.diagrams_[i], np.array([[0.,1.], [1.,0.]])) + op_D = self.diagrams_[i][:,[1,0]] self.diagrams_[i] = np.concatenate([self.diagrams_[i], op_D], axis=0) self.pwg_.fit(X) return self diff --git a/src/python/gudhi/sktda/metrics.py b/src/python/gudhi/sktda/metrics.py index e85fd14d..cc461cbd 100644 --- a/src/python/gudhi/sktda/metrics.py +++ b/src/python/gudhi/sktda/metrics.py @@ -1,6 +1,11 @@ -""" -@author: Mathieu Carriere -All rights reserved +""" This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. + See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. + Author(s): Mathieu Carrière + + Copyright (C) 2018-2019 Inria + + Modification(s): + - YYYY/MM Author: Description of the modification """ import numpy as np diff --git a/src/python/gudhi/sktda/preprocessing.py b/src/python/gudhi/sktda/preprocessing.py index 784e300f..8c0ca2c4 100644 --- a/src/python/gudhi/sktda/preprocessing.py +++ b/src/python/gudhi/sktda/preprocessing.py @@ -1,6 +1,11 @@ -""" -@author: Mathieu Carriere -All rights reserved +""" This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. + See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. + Author(s): Mathieu Carrière + + Copyright (C) 2018-2019 Inria + + Modification(s): + - YYYY/MM Author: Description of the modification """ import numpy as np diff --git a/src/python/gudhi/sktda/vector_methods.py b/src/python/gudhi/sktda/vector_methods.py index 42ded45f..2b72b173 100644 --- a/src/python/gudhi/sktda/vector_methods.py +++ b/src/python/gudhi/sktda/vector_methods.py @@ -1,6 +1,11 @@ -""" -@author: Mathieu Carriere -All rights reserved +""" This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. + See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. + Author(s): Mathieu Carrière + + Copyright (C) 2018-2019 Inria + + Modification(s): + - YYYY/MM Author: Description of the modification """ import numpy as np |