graph_classification
GeneralCalculator
Bases: BasicTaskCalculator
Source code in flgo\benchmark\toolkits\graph\graph_classification\__init__.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
|
compute_loss(model, data)
model: the model to train
Name | Type | Description | Default |
---|---|---|---|
data |
the training dataset |
required |
Source code in flgo\benchmark\toolkits\graph\graph_classification\__init__.py
139 140 141 142 143 144 145 146 147 148 |
|
test(model, dataset, batch_size=64, num_workers=0, pin_memory=False)
Metric = [mean_accuracy, mean_loss]
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset |
batch_size: |
required |
Source code in flgo\benchmark\toolkits\graph\graph_classification\__init__.py
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
|