tasks.graph_classification

Module Contents

Classes

GraphClassification

Superiviced graph classification task.

Functions

node_degree_as_feature(data)

Set each node feature as one-hot encoding of degree

uniform_node_feature(data)

Set each node feature to the same

tasks.graph_classification.node_degree_as_feature(data)[source]

Set each node feature as one-hot encoding of degree :param data: a list of class Data :return: a list of class Data

tasks.graph_classification.uniform_node_feature(data)[source]

Set each node feature to the same

class tasks.graph_classification.GraphClassification(args)[source]

Bases: tasks.BaseTask

Superiviced graph classification task.

static add_args(parser)[source]

Add task-specific arguments to the parser.

train(self)[source]
_train(self)[source]
_train_step(self)[source]
_test_step(self, split='val')[source]
_kfold_train(self)[source]
generate_data(self, dataset, args)[source]