models.emb.spectral

Module Contents

Classes

Spectral

The Spectral clustering model from the `”Leveraging social media networks for classification”

class models.emb.spectral.Spectral(dimension)[source]

Bases: models.BaseModel

The Spectral clustering model from the “Leveraging social media networks for classification” paper

Args:

hidden_size (int) : The dimension of node representation.

static add_args(parser)[source]

Add model-specific arguments to the parser.

classmethod build_model_from_args(cls, args)[source]

Build a new model instance.

train(self, G)[source]