hopsy.transform#
- hopsy.transform(problem, samples=None, points=None)#
Transform samples from the original parameter space to the sampling space.
- Parameters:
problem (hopsy.Problem) – A hopsy.Problem with populated problem.transformation and problem.shift of shape (m, d) and (d, ), respectively. If not populated, the identity operation is performed.
samples (np.array) – Parameter samples of shape (…, d) which are to be transformed.
points (np.array) – Parameter samples of shape (…, d) which are to be transformed. To be deprecated.
- Returns:
Transformed samples of shape (…, m)
- Return type:
np.array
Notes
Depending on the condition number of problem.transformation, this method can lead to numerical issues.