compress()#
- abstract BasisTemplate.compress(states)[source]#
Map high-dimensional states to low-dimensional latent coordinates.
- Parameters:
- states(n, …) ndarray
Matrix of n-dimensional state vectors, or a single state vector.
- Returns:
- states_compressed(r, …) ndarray
Matrix of r-dimensional latent coordinate vectors, or a single coordinate vector.