hyrax.verbs.umap#
Attributes#
Classes#
Umap latent space points into 2d |
Module Contents#
- class Umap(config)[source]#
Bases:
hyrax.verbs.verb_registry.VerbUmap latent space points into 2d
Overall initialization for all verbs that saves the config
- description = 'Transforms the entire dataset into a lower-dimensional space by fitting a UMAP model.'[source]#
- run(input_dir: pathlib.Path | str | None = None, model_path: pathlib.Path | str | None = None)[source]#
Deprecated wrapper for reduce_dimensions running the UMAP algorithm.
This wrapper delegates execution to
reduce_dimensionswithalgorithm='umap'so thatumapverb remains available for backward compatibility. But users are encouraged to switch to usingreduce_dimensions.- Parameters:
input_dir (str or Path, Optional) – The directory containing the inference results.
model_path (str or Path, Optional) – The path to a pre-existing UMAP model.
- Returns:
The method does not return anything but saves the UMAP representations to disk.
- Return type:
None