Skip to content

custom data run #4

@anastasiiakim

Description

@anastasiiakim

Hi, how to run it for custom data easy?

Also in src/gbd_utils/precondition.py function "get_discrete_prob" has missing values, how to get those for custom data?

def get_discrete_prob(self, dataset_name, dataset_info, prob=None, num_classes=None):
    if prob is not None:
        return prob

    if dataset_name == 'comm20':
        prob_X = torch.tensor([0.0000, 0.0393, 0.2376, 0.2376, 0.2192, 0.1394, 0.0910, 0.0340, 0.0020])
        prob_E = torch.tensor([0.2914])
    elif dataset_name == 'ego':
        ValueError('Not implenmted. The code will Coming soon.')
    elif dataset_name == 'planar':
        ValueError('Not implenmted. The code will Coming soon.')
    elif dataset_name == 'sbm':
        ValueError('Not implenmted. The code will Coming soon.')
    elif dataset_name == 'qm9':
        prob_X = dataset_info.node_types
        prob_E = dataset_info.edge_types_new
    elif dataset_name == 'zinc250k':
        ValueError('Not implenmted. The code will Coming soon.')
    else:
        raise ValueError('Invalid dataset')

    return (prob_X, prob_E)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions