ContinuousSGP¶
sgptools.methods.ContinuousSGP
¶
Bases: Method
Informative sensing / path optimization via direct optimization of Sparse Gaussian Process (SGP) inducing points.
This method treats the inducing locations of an AugmentedSGPR model as
the decision variables and optimizes them with respect to the SGP's ELBO
(or another internal objective implemented by AugmentedSGPR).
Refer to the following papers for more details
- Jakkala and Akella, 2024. Multi-Robot Informative Path Planning from Regression with Sparse Gaussian Processes.
- Jakkala and Akella, 2025. Fully differentiable sensor placement and informative path planning.
Attributes:
| Name | Type | Description |
|---|---|---|
sgpr |
AugmentedSGPR
|
|
Source code in sgptools/methods.py
608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 | |
transform
property
¶
Transform associated with the underlying SGP model.
Returns:
| Name | Type | Description |
|---|---|---|
Transform |
Transform
|
The |
__init__(num_sensing, X_objective, kernel, noise_variance, transform=None, num_robots=1, X_candidates=None, num_dim=None, X_init=None, X_time=None, orientation=False, **kwargs)
¶
Initialize a continuous SGP-based optimization method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_sensing
|
int
|
Number of inducing points (sensing locations) per robot. |
required |
X_objective
|
ndarray
|
Array of shape |
required |
kernel
|
Kernel
|
GPflow kernel for the SGP model. |
required |
noise_variance
|
float
|
Observation noise variance for the SGP model. |
required |
transform
|
Transform | None
|
Optional |
None
|
num_robots
|
int
|
Number of robots / agents. The total number of inducing points is
|
1
|
X_candidates
|
ndarray | None
|
Optional candidate set |
None
|
num_dim
|
int | None
|
Dimensionality of sensing locations. If |
None
|
X_init
|
ndarray | None
|
Initial inducing points with shape |
None
|
X_time
|
ndarray | None
|
Optional temporal coordinates (e.g. for spatio-temporal models),
passed as |
None
|
orientation
|
bool
|
If |
False
|
**kwargs
|
Any
|
Additional keyword arguments forwarded to |
{}
|
Source code in sgptools/methods.py
get_hyperparameters()
¶
Return the current kernel and noise variance of the SGP model.
Returns:
| Type | Description |
|---|---|
Tuple[Kernel, float]
|
Tuple[gpflow.kernels.Kernel, float]: A deep copy of the kernel and the current likelihood variance. |
Source code in sgptools/methods.py
optimize(max_steps=500, optimizer='scipy.L-BFGS-B', verbose=False, **kwargs)
¶
Optimize the inducing points of the SGP model.
The ELBO (or equivalent objective defined within AugmentedSGPR) is
optimized w.r.t. the inducing locations only; kernel hyperparameters
are kept fixed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_steps
|
int
|
Maximum number of optimization steps. Defaults to 500. |
500
|
optimizer
|
str
|
Optimizer specification in the form |
'scipy.L-BFGS-B'
|
verbose
|
bool
|
If |
False
|
**kwargs
|
Any
|
Extra keyword arguments forwarded to |
{}
|
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray:
Array of shape |
Source code in sgptools/methods.py
update(kernel, noise_variance)
¶
Update the kernel and noise variance used by the SGP model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kernel
|
Kernel
|
New GPflow kernel instance. |
required |
noise_variance
|
float
|
New observation noise variance. |
required |