Made GenericDM1D more generic, tests all training samples