Skip to content

Commit 2486e39

Browse files
committed
added updates for decomposition.py and diarization.py
1 parent 8aab33c commit 2486e39

2 files changed

Lines changed: 69 additions & 81 deletions

File tree

speechbrain/processing/decomposition.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Generalized Eigenvalue Decomposition
2+
Generalized Eigenvalue Decomposition.
33
44
This library contains different methods to adjust the format of
55
complex Hermitian matrices and find their eigenvectors and
@@ -15,7 +15,7 @@
1515

1616

1717
def gevd(a, b=None):
18-
""" This method computes the eigenvectors and the eigenvalues
18+
"""This method computes the eigenvectors and the eigenvalues
1919
of complex Hermitian matrices. The method finds a solution to
2020
the problem AV = BVD where V are the eigenvectors and D are
2121
the eigenvalues.
@@ -116,7 +116,7 @@ def gevd(a, b=None):
116116

117117

118118
def svdl(a):
119-
""" Singular Value Decomposition (Left Singular Vectors)
119+
""" Singular Value Decomposition (Left Singular Vectors).
120120
121121
This function finds the eigenvalues and eigenvectors of the
122122
input multiplied by its transpose (a x a.T).
@@ -181,7 +181,7 @@ def svdl(a):
181181

182182

183183
def f(ws):
184-
""" Transform 1
184+
"""Transform 1.
185185
186186
This method takes a complex Hermitian matrix represented by its
187187
upper triangular part and converts it to a block matrix
@@ -253,7 +253,7 @@ def finv(wsh):
253253

254254

255255
def g(ws):
256-
""" Transform 2
256+
"""Transform 2.
257257
258258
This method takes a full complex matrix and converts it to a block
259259
matrix. The result will have the following format:
@@ -285,7 +285,7 @@ def g(ws):
285285

286286

287287
def ginv(wsh):
288-
""" Inverse transform 2
288+
"""Inverse transform 2.
289289
290290
This method takes a complex Hermitian matrix represented by a block
291291
matrix and converts it to a full complex complex matrix. The
@@ -314,7 +314,7 @@ def ginv(wsh):
314314

315315

316316
def pos_def(ws, alpha=0.001, eps=1e-20):
317-
""" Diagonal modification
317+
"""Diagonal modification.
318318
319319
This method takes a complex Hermitian matrix represented by its upper
320320
triangular part and adds the value of its trace multiplied by alpha
@@ -357,7 +357,7 @@ def pos_def(ws, alpha=0.001, eps=1e-20):
357357

358358

359359
def inv(x):
360-
""" Inverse Hermitian Matrix
360+
"""Inverse Hermitian Matrix.
361361
362362
This method finds the inverse of a complex Hermitian matrix
363363
represented by its upper triangular part. The result will have

0 commit comments

Comments
 (0)