pysdic.build_transformation_term#

build_transformation_term(transformation, input_points, output_points, parameters=None, *, kwargs=None, mode='rJ', weight=1.0, loss=None, loss_scale=1.0, filter_nans=False, sparse=False, use_cache=False)[source]#

Build a pysolvegn.Term to optimize the parameters \(\vec{p}\) of a single transformation \(T\) such that \(T(X; \vec{p}) \approx Y\):

\[\min_{\vec{p}} \frac{1}{2} \sum_j \rho\left( \| T(X_j; \vec{p}) - Y_j \|^2 \right)\]

See also

Parameters:
Returns:

  • pysolvegn.Term – The term to give to pysolvegn.solve.

  • numpy.ndarray – The initial parameters with shape \((n_p,)\), to use as p0.

Return type:

Tuple[Term, ndarray]