spectral-clustering 0.2.2.2 → 0.2.2.3
raw patch · 4 files changed
+4/−4 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- spectral-clustering.cabal +1/−1
- src/Math/Clustering/Spectral/Dense.hs +1/−1
- src/Math/Clustering/Spectral/Eigen/FeatureMatrix.hs +1/−1
- src/Math/Clustering/Spectral/Sparse.hs +1/−1
spectral-clustering.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: spectral-clustering-version: 0.2.2.2+version: 0.2.2.3 license: GPL-3 license-file: LICENSE copyright: 2019 Gregory W. Schwartz
src/Math/Clustering/Spectral/Dense.hs view
@@ -105,7 +105,7 @@ bToD (B b) = D . H.diag . H.flatten- $ b+ $ (H.cmap abs b) H.<> ((H.cmap abs $ H.tr b) H.<> ((n H.>< 1) [1,1..])) where n = H.rows b
src/Math/Clustering/Spectral/Eigen/FeatureMatrix.hs view
@@ -79,7 +79,7 @@ -- | Get the signed diagonal transformed B matrix. bToD :: B -> D-bToD (B b) = D . S.diagCol 0 $ b * ((S._map abs $ S.transpose b) * S.ones n)+bToD (B b) = D . S.diagCol 0 $ (S._map abs b) * ((S._map abs $ S.transpose b) * S.ones n) where n = S.rows b
src/Math/Clustering/Spectral/Sparse.hs view
@@ -100,7 +100,7 @@ bToD (B b) = D . S.diagonalSM . flip S.extractCol 0- $ b+ $ (fmap abs b) S.#~# ((fmap abs $ S.transposeSM b) S.#~# (S.fromColsL [S.onesSV n])) where n = S.nrows b