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).
References¶
- Jakkala & Akella, 2024. Multi-Robot Informative Path Planning from Regression with Sparse Gaussian Processes.
- Jakkala & Akella, 2025. Fully differentiable sensor placement and informative path planning.
Attributes¶
sgpr:
AugmentedSGPR model whose inducing points are being optimized.
Source code in sgptools/methods.py
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 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 | |
transform
property
¶
Transform associated with the underlying SGP model.
Returns¶
Transform
The Transform instance used by AugmentedSGPR.
__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¶
num_sensing:
Number of inducing points (sensing locations) per robot.
X_objective:
Array of shape (n, d) used to define the spatial domain and
training inputs for the SGP.
kernel:
GPflow kernel for the SGP model.
noise_variance:
Observation noise variance for the SGP model.
transform:
Optional Transform to apply to inducing points for IPP or FoV
modeling. Passed directly into AugmentedSGPR.
num_robots:
Number of robots / agents. The total number of inducing points is
num_sensing * num_robots. Defaults to 1.
X_candidates:
Optional candidate set (c, d) used to snap the final continuous
inducing locations to discrete locations.
num_dim:
Dimensionality of sensing locations. If None, defaults to
X_objective.shape[-1], or to X_init.shape[-1] if an initial
solution is provided.
X_init:
Initial inducing points with shape (num_sensing * num_robots, d).
If None, points are chosen via get_inducing_pts. If given,
its dimensionality overrides num_dim.
X_time:
Optional temporal coordinates (e.g. for spatio-temporal models),
passed as inducing_variable_time to AugmentedSGPR.
orientation:
If True and X_init is not provided, get_inducing_pts is
allowed to include an orientation dimension for the inducing points.
**kwargs:
Additional keyword arguments forwarded to AugmentedSGPR if needed
(currently unused here but accepted for flexibility).
Source code in sgptools/methods.py
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 | |
get_hyperparameters()
¶
Return the current kernel and noise variance of the SGP model.
Returns¶
(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¶
max_steps:
Maximum number of optimization steps. Defaults to 500.
optimizer:
Optimizer specification in the form "backend.method" (e.g.
'scipy.L-BFGS-B', 'tf.adam'), as expected by optimize_model.
verbose:
If True, print progress information during optimization.
**kwargs:
Extra keyword arguments forwarded to optimize_model.
Returns¶
np.ndarray
Array of shape (num_robots, num_sensing, num_dim) containing the
optimized inducing locations.