diff --git a/src/metatrain/experimental/alchemical_model/schema-hypers.json b/src/metatrain/experimental/alchemical_model/schema-hypers.json index 387a4f6ea..b5901c318 100644 --- a/src/metatrain/experimental/alchemical_model/schema-hypers.json +++ b/src/metatrain/experimental/alchemical_model/schema-hypers.json @@ -92,11 +92,8 @@ }, "loss_weights": { "type": "object", - "properties": { - "energy": { - "type": "number" - }, - "forces": { + "patternProperties": { + ".*": { "type": "number" } }, diff --git a/src/metatrain/experimental/soap_bpnn/schema-hypers.json b/src/metatrain/experimental/soap_bpnn/schema-hypers.json index 044f59729..2ce8a1b4e 100644 --- a/src/metatrain/experimental/soap_bpnn/schema-hypers.json +++ b/src/metatrain/experimental/soap_bpnn/schema-hypers.json @@ -134,11 +134,8 @@ }, "loss_weights": { "type": "object", - "properties": { - "energy": { - "type": "number" - }, - "forces": { + "patternProperties": { + ".*": { "type": "number" } },