Greedy SGP
sgptools.models.greedy_sgp
GreedySGP
Helper class to compute SGP's ELBO/optimization bound for a given set of sensor locations.
Used by get_greedy_sgp_sol
function to compute the solution sensor placements using the Greedy-SGP method.
Refer to the following papers for more details
- Efficient Sensor Placement from Regression with Sparse Gaussian Processes in Continuous and Discrete Spaces [Jakkala and Akella, 2023]
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_inducing |
int
|
Number of inducing points |
required |
S |
ndarray
|
(n, d); Candidate sensor placement locations |
required |
V |
ndarray
|
(n, d); Locations in the environment used to approximate the monitoring regions |
required |
noise_variance |
float
|
Data noise variance |
required |
kernel |
Kernel
|
gpflow kernel function |
required |
transform |
Transform
|
Transform object |
None
|
Source code in sgptools/models/greedy_sgp.py
bound(x)
Computes the SGP's optimization bound using the inducing points x
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
ndarray
|
(n); Indices of the solution placement locations |
required |
Returns:
Name | Type | Description |
---|---|---|
elbo |
float
|
Evidence lower bound/SGP's optimization bound value |
Source code in sgptools/models/greedy_sgp.py
get_greedy_sgp_sol(num_sensors, candidates, X_train, noise_variance, kernel, transform=None)
Get sensor placement solutions using the Greedy-SGP method. Uses a greedy algorithm to select sensor placements from a given discrete set of candidates locations.
Refer to the following papers for more details
- Efficient Sensor Placement from Regression with Sparse Gaussian Processes in Continuous and Discrete Spaces [Jakkala and Akella, 2023]
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_sensors |
int
|
Number of sensor locations to optimize |
required |
candidates |
ndarray
|
(n, d); Candidate sensor placement locations |
required |
X_train |
ndarray
|
(n, d); Locations in the environment used to approximate the monitoring regions |
required |
noise_variance |
float
|
data variance |
required |
kernel |
Kernel
|
gpflow kernel function |
required |
transform |
Transform
|
Transform object |
None
|
Returns:
Name | Type | Description |
---|---|---|
Xu |
ndarray
|
(m, d); Solution sensor placement locations |