That if no Validation sets are provided. then the entire endeavor fails. This would be because of difference in the Trainer class which has the following condition
if has_validation:
val_predictions = []
val_targets = []
for val_index, batch in enumerate(mgb_val):
graph_batch, target_batch = batch
if isinstance(graph_batch, MaterialGraph):
Whereas PotentialTrainer does not and attempts do.
for batch_index, batch in enumerate(mgb_val):
graph_batch, target_batch = batch
and since "mgb_val" is not set it fails since the "has_validation" condition is not utilized
It seems when doing
That if no Validation sets are provided. then the entire endeavor fails. This would be because of difference in the
Trainer
class which has the following conditionWhereas PotentialTrainer does not and attempts do.
and since "mgb_val" is not set it fails since the "has_validation" condition is not utilized