4bd8d42a46e311a263a0c0acc018bed6cc3a629b,Python/phate/phate.py,PHATE,von_neumann_entropy,#PHATE#Any#,394
Before Change
raise NotFittedError("This PHATE instance is not fitted yet. Call "
""fit" with appropriate arguments before "
"using this method.")
diff_aff = np.diagflat(
np.power(np.sum(self.gs_ker, axis=0), 1 / 2))
diff_aff = np.matmul(np.matmul(diff_aff, self.gs_ker),
diff_aff)
diff_aff = (diff_aff + diff_aff.T) / 2
_, eigenvalues, _ = svd(diff_aff)
entropy = []
After Change
diff_aff = sparse.diags(np.array(diff_aff)[0])
else:
diff_aff = np.diagflat(diff_aff)
diff_aff = diff_aff @ self.gs_ker @ diff_aff
diff_aff = (diff_aff + diff_aff.T) / 2
if is_sparse:
_, eigenvalues, _ = sparse.linalg.svds(
diff_aff, diff_aff.shape[0] - 1)
else:
_, eigenvalues, _ = svd(diff_aff)
entropy = []
eigenvalues_t = np.copy(eigenvalues)
for _ in range(t_max):
prob = eigenvalues_t / np.sum(eigenvalues_t)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: KrishnaswamyLab/PHATE
Commit Name: 4bd8d42a46e311a263a0c0acc018bed6cc3a629b
Time: 2018-04-02
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: von_neumann_entropy
Project Name: ysig/GraKeL
Commit Name: b996639740adde1bf4b39b278e83c4c295ad65ca
Time: 2018-09-24
Author: y.siglidis@gmail.com
File Name: grakel/kernels/random_walk.py
Class Name: RandomWalk
Method Name: pairwise_operation
Project Name: geomstats/geomstats
Commit Name: 5c2ae503e85bfac2346ea7a562c476c943bb3ec9
Time: 2018-02-03
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: closest_rotation_matrix
Project Name: KrishnaswamyLab/PHATE
Commit Name: b912ae50a0ca1766eceb062973e2952997285fac
Time: 2018-04-04
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: von_neumann_entropy