invert4geom.DatasetAccessorInvert4Geom.regional_constraints_cv#
- DatasetAccessorInvert4Geom.regional_constraints_cv(constraints_df, split_kwargs=None, regional_shift=0, mask_column=None, reverse_regional_residual=False, **kwargs)[source]#
This is a convenience function to wrap
optimize_regional_constraint_point_minimization. It takes a full constraints dataframe and dictionarysplit_kwargs, to split the constraints into testing and training sets (with K-folds), uses these folds in a K-Folds hyperparameter optimization to find the set of parameter values (tension factor, spline damping, or equivalent source depth and damping) which estimates the best regional field. It then uses the optimal parameter values and all of the constraint points to re-calculate the best regional field. All kwargs are passed to the functionoptimize_regional_constraint_point_minimization.- Parameters:
constraints_df (
DataFrame) â dataframe of constraints with columnseasting,northing(orlongitude,latitude), andupward.split_kwargs (
dict[str,Any] |None) â kwargs to be passed tosplit_test_train, by default Noneregional_shift (
float) â shift to add to the regional field, by default 0mask_column (
str|None) â Name of optional dataset variable with values to multiply the calculated residual gravity field by, should have values of 1 or 0, by default None.reverse_regional_residual (
bool) â if True, reverse the regional and residual fields after calculation, by default False**kwargs (
Any) â kwargs to be passed tooptimize_regional_constraint_point_minimization
See also
DatasetAccessorInvert4Geom.regional_separation,DatasetAccessorInvert4Geom.regional_constraints- Return type: