nystrom-ncut 0.1.6__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {nystrom_ncut-0.1.6/src/nystrom_ncut.egg-info → nystrom_ncut-0.1.7}/PKG-INFO +1 -1
  2. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/pyproject.toml +1 -1
  3. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/visualize_utils.py +2 -3
  4. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7/src/nystrom_ncut.egg-info}/PKG-INFO +1 -1
  5. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/LICENSE +0 -0
  6. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/MANIFEST.in +0 -0
  7. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/README.md +0 -0
  8. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/requirements.txt +0 -0
  9. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/setup.cfg +0 -0
  10. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/__init__.py +0 -0
  11. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/__init__.py +0 -0
  12. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/common.py +0 -0
  13. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/distance_utils.py +0 -0
  14. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/nystrom/__init__.py +0 -0
  15. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/nystrom/distance_realization.py +0 -0
  16. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/nystrom/normalized_cut.py +0 -0
  17. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/nystrom/nystrom_utils.py +0 -0
  18. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut/sampling_utils.py +0 -0
  19. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut.egg-info/SOURCES.txt +0 -0
  20. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut.egg-info/dependency_links.txt +0 -0
  21. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/src/nystrom_ncut.egg-info/top_level.txt +0 -0
  22. {nystrom_ncut-0.1.6 → nystrom_ncut-0.1.7}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nystrom_ncut
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Normalized Cut and Nyström Approximation
5
5
  Author-email: Huzheng Yang <huze.yann@gmail.com>, Wentinn Liao <wentinn.liao@gmail.com>
6
6
  Project-URL: Documentation, https://github.com/JophiArcana/Nystrom-NCUT/
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "nystrom_ncut"
7
- version = "0.1.6"
7
+ version = "0.1.7"
8
8
  authors = [
9
9
  { name = "Huzheng Yang", email = "huze.yann@gmail.com" },
10
10
  { name = "Wentinn Liao", email = "wentinn.liao@gmail.com" },
@@ -179,14 +179,13 @@ def _rgb_with_dimensionality_reduction(
179
179
  )
180
180
 
181
181
  _inp = features[subgraph_indices].numpy(force=True)
182
- _subgraph_embed = reduction(
182
+ _subgraph_embed = torch.tensor(reduction(
183
183
  n_components=reduction_dim,
184
184
  metric=disttype,
185
185
  random_state=seed,
186
186
  **reduction_kwargs
187
- ).fit_transform(_inp)
187
+ ).fit_transform(_inp), device=features.device, dtype=features.dtype)
188
188
 
189
- _subgraph_embed = torch.tensor(_subgraph_embed, dtype=torch.float32)
190
189
  rgb = rgb_func(extrapolate_knn(
191
190
  features[subgraph_indices],
192
191
  _subgraph_embed,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nystrom_ncut
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Normalized Cut and Nyström Approximation
5
5
  Author-email: Huzheng Yang <huze.yann@gmail.com>, Wentinn Liao <wentinn.liao@gmail.com>
6
6
  Project-URL: Documentation, https://github.com/JophiArcana/Nystrom-NCUT/
File without changes
File without changes
File without changes
File without changes
File without changes