utils
: Utility Functions¶
This module provides a collection of helper functions for data processing, model training, and other tasks.
-
data
: Contains theDataset
class, which handles loading, preprocessing, and sampling of data from various sources, including GeoTIFF files and synthetic data generation. -
gpflow
: Provides utility functions for training GPflow models, such asget_model_params
for finding optimal kernel hyperparameters andoptimize_model
for running the optimization. It also includes aTraceInducingPts
class to monitor the movement of inducing points during training. -
misc
: A collection of miscellaneous helper functions, includingget_inducing_pts
for selecting initial inducing points (via k-means or random sampling),cont2disc
for mapping continuous solutions to a discrete set of candidates, andpolygon2candidates
for sampling points within a polygon. -
tsp
: Provides functionality for solving the Traveling Salesperson Problem (TSP) using Google's OR-Tools. Therun_tsp
function can find effient paths for single or multiple vehicles, with optional start and end nodes, and can resample the resulting paths to have a fixed number of points.