Skip to content

Empty giant component #40

Description

@roygutg

The behvaioral.data_classes.PostparsedDataset class has a _calc_giant_component method. This method builds the semantic network for the dataset, and returns the giant component ("GC"; its largest connected component).
In case the semantic network has no edges, the procedure for getting its largest CC fails with a ValueError.
Instead, it should return a default value.

If currently the GC is of type tuple (verify), then an empty tuple may be an appropriate default value.

Whatever default value is chosen, it's important to also implement in FeatureExtractor that when the default GC is received, GC-based features turn to None. If a numeric value is outputted for those features, users may not notice that GC creation has failed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions