Skip to content

spectral_embedding_manifold

Bases: manifold

Manifold learning using the Spectral Embedding algorithm.

This class implements dimensionality reduction using the Spectral Embedding algorithm, which uses eigenvalue decomposition of the Laplacian matrix.

Source code in tinybig/koala/manifold/manifold.py
class spectral_embedding_manifold(manifold):
    """
    Manifold learning using the Spectral Embedding algorithm.

    This class implements dimensionality reduction using the Spectral Embedding algorithm, which uses eigenvalue
    decomposition of the Laplacian matrix.
    """
    def __init__(self, name: str = 'spectral_embedding_manifold', *args, **kwargs):
        """
        Initialize the Spectral Embedding manifold learning class.

        Parameters
        ----------
        name : str, optional
            The name of the manifold learning method. Default is 'spectral_embedding_manifold'.
        *args, **kwargs
            Additional arguments for the base class.
        """
        super().__init__(name=name, *args, **kwargs)

    def init_model(self):
        """
        Initialize the Spectral Embedding model.
        """
        self.model = SpectralEmbedding(n_components=self.n_components)

__init__(name='spectral_embedding_manifold', *args, **kwargs)

Initialize the Spectral Embedding manifold learning class.

Parameters:

Name Type Description Default
name str

The name of the manifold learning method. Default is 'spectral_embedding_manifold'.

'spectral_embedding_manifold'
*args

Additional arguments for the base class.

()
**kwargs

Additional arguments for the base class.

()
Source code in tinybig/koala/manifold/manifold.py
def __init__(self, name: str = 'spectral_embedding_manifold', *args, **kwargs):
    """
    Initialize the Spectral Embedding manifold learning class.

    Parameters
    ----------
    name : str, optional
        The name of the manifold learning method. Default is 'spectral_embedding_manifold'.
    *args, **kwargs
        Additional arguments for the base class.
    """
    super().__init__(name=name, *args, **kwargs)

init_model()

Initialize the Spectral Embedding model.

Source code in tinybig/koala/manifold/manifold.py
def init_model(self):
    """
    Initialize the Spectral Embedding model.
    """
    self.model = SpectralEmbedding(n_components=self.n_components)