in bayesmark/space.py [0:0]
def validate(self, X):
"""Raise `ValueError` if X does not match the format expected for a
joint space."""
for record in X:
if self.param_list != sorted(record.keys()):
raise ValueError("Expected joint space keys %s, but got %s", (self.param_list, sorted(record.keys())))
for param in self.param_list:
self.spaces[param].validate([record[param]], pre=True)
# Return X back so we have option to cast it to list or whatever later
return X