-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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
Labels
No labels