You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When lists of Atoms objects with varying numbers of atoms are passed to CalibrationMetrics, the analysis fails. In get_data, converting the lists of forces into arrays will raise an error about the inhomogeneous shape:
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (197,) + inhomogeneous part.
(197 is the number of Atoms objects in the dataset.)
PredictionMetricsworks around this by using np.concatenate() instead of np.array(), which is fine because afterwards the arrays get flattened anyway:
This can be implemented into CalibrationMetrics without an issue, but in preparing the ensemble force data reshaping is done based on the number of atoms in the dataset, and such the above change does not apply there.
The text was updated successfully, but these errors were encountered:
When lists of
Atoms
objects with varying numbers of atoms are passed toCalibrationMetrics
, the analysis fails. Inget_data
, converting the lists of forces into arrays will raise an error about the inhomogeneous shape:(197 is the number of
Atoms
objects in the dataset.)PredictionMetrics
works around this by usingnp.concatenate()
instead ofnp.array()
, which is fine because afterwards the arrays get flattened anyway:This can be implemented into
CalibrationMetrics
without an issue, but in preparing the ensemble force data reshaping is done based on the number of atoms in the dataset, and such the above change does not apply there.The text was updated successfully, but these errors were encountered: