Skip to content

Commit

Permalink
Merge pull request #30 from FangJiangyi/master
Browse files Browse the repository at this point in the history
fixed update docs
  • Loading branch information
FangJiangyi authored Jun 30, 2023
2 parents 29e59d0 + 08b8de0 commit 0f3e955
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions UCTB/preprocess/GraphGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,3 @@ def scaled_laplacian_STGCN(W):
# lambda_max \approx 2.0, the largest eigenvalues of L.
lambda_max = eigs(L, k=1, which='LR')[0][0].real
return np.mat(2 * L / lambda_max - np.identity(n))

if __name__ == '__main__':
am = np.array([[0,1,0,0,1,0],[1,0,1,0,1,0],[0,1,0,1,0,0],[0,0,1,0,1,1],[1,1,0,1,0,0],[0,0,0,1,0,0]],dtype=np.float32)
print(scaled_Laplacian_ASTGCN(am))
print(scaled_laplacian_STGCN(am))
print(GraphGenerator.adjacent_to_laplacian(am))
2 changes: 1 addition & 1 deletion UCTB/preprocess/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Normalizer(ABC):
Normalizer is the base abstract class for many normalizers such as MaxMinNormalizer and ZscoreNormalizer.You can also build your own normalizer by inheriting this class.
Args:
X: Data which normalizer extracts characteristics from.
X(ndarray): Data which normalizer extracts characteristics from.
"""
@abstractmethod
def __init__(self, X):
Expand Down
Binary file modified docs/.doctrees/UCTB.preprocess.doctree
Binary file not shown.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/UCTB.preprocess.html
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ <h2><span class="section-number">5.2.1. </span>UCTB.preprocess.GraphGenerator mo
<p>Normalizer is the base abstract class for many normalizers such as MaxMinNormalizer and ZscoreNormalizer.You can also build your own normalizer by inheriting this class.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>X</strong> – Data which normalizer extracts characteristics from.</p>
<dd class="field-odd"><p><strong>X</strong> (<em>ndarray</em>) – Data which normalizer extracts characteristics from.</p>
</dd>
</dl>
</dd></dl>
Expand Down

0 comments on commit 0f3e955

Please sign in to comment.