espnet.utils.spec_augment.apply_interpolation
Less than 1 minute
espnet.utils.spec_augment.apply_interpolation
espnet.utils.spec_augment.apply_interpolation(query_points, train_points, w, v, order)
Apply polyharmonic interpolation model to data.
Notes
Given coefficients w and v for the interpolation model, we evaluate interpolated function values at query_points.
- Parameters:
- query_points – [b, m, d] x values to evaluate the interpolation at
- train_points – [b, n, d] x values that act as the interpolation centers ( the c variables in the wikipedia article) w: [b, n, k] weights on each interpolation center v: [b, d, k] weights on each input dimension
- order – order of the interpolation
- Returns: Polyharmonic interpolation evaluated at points defined in query_points.