summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authormathieu <mathieu.carriere3@gmail.com>2019-11-09 21:01:44 -0500
committermathieu <mathieu.carriere3@gmail.com>2019-11-09 21:01:44 -0500
commit5372648ccc80e9754e1d2057c5bdba9724810da5 (patch)
treebef746b37d07b2e265b4a3fdbf0df767096b1e56 /src/python
parentdc9771161ec5155030dad9301cd9af79f13005b3 (diff)
added copyrights
Diffstat (limited to 'src/python')
-rw-r--r--src/python/gudhi/sktda/kernel_methods.py13
-rw-r--r--src/python/gudhi/sktda/metrics.py11
-rw-r--r--src/python/gudhi/sktda/preprocessing.py11
-rw-r--r--src/python/gudhi/sktda/vector_methods.py11
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