invert4geom.add_test_points

Contents

invert4geom.add_test_points#

add_test_points(ds)[source]#

take a dataframe of coordinates and make all rows that fall on the data_spacing grid training points. Add rows at each point which falls on the grid points of half the data_spacing, assign these with label β€œtest”. If other data is present in dataframe, will sample at each new location.

Parameters:

ds (Dataset) – gravity dataset to be resampled.

Returns:

gravity dataset with a boolean variable β€œtest” denoting whether the row is a training or testing point.

Return type:

Dataset