sgptools 1.1.7__tar.gz → 1.1.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {sgptools-1.1.7 → sgptools-1.1.8}/PKG-INFO +1 -1
  2. {sgptools-1.1.7 → sgptools-1.1.8}/setup.py +1 -1
  3. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/__init__.py +1 -1
  4. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/core/osgpr.py +6 -3
  5. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools.egg-info/PKG-INFO +1 -1
  6. {sgptools-1.1.7 → sgptools-1.1.8}/LICENSE.txt +0 -0
  7. {sgptools-1.1.7 → sgptools-1.1.8}/README.md +0 -0
  8. {sgptools-1.1.7 → sgptools-1.1.8}/setup.cfg +0 -0
  9. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/kernels/__init__.py +0 -0
  10. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/kernels/neural_kernel.py +0 -0
  11. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/__init__.py +0 -0
  12. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/bo.py +0 -0
  13. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/cma_es.py +0 -0
  14. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/continuous_sgp.py +0 -0
  15. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/core/__init__.py +0 -0
  16. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/core/augmented_gpr.py +0 -0
  17. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/core/augmented_sgpr.py +0 -0
  18. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/core/transformations.py +0 -0
  19. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/greedy_mi.py +0 -0
  20. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/models/greedy_sgp.py +0 -0
  21. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/utils/__init__.py +0 -0
  22. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/utils/data.py +0 -0
  23. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/utils/gpflow.py +0 -0
  24. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/utils/metrics.py +0 -0
  25. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/utils/misc.py +0 -0
  26. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools/utils/tsp.py +0 -0
  27. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools.egg-info/SOURCES.txt +0 -0
  28. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools.egg-info/dependency_links.txt +0 -0
  29. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools.egg-info/requires.txt +0 -0
  30. {sgptools-1.1.7 → sgptools-1.1.8}/sgptools.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sgptools
3
- Version: 1.1.7
3
+ Version: 1.1.8
4
4
  Summary: Software Suite for Sensor Placement and Informative Path Planning
5
5
  Home-page: https://www.itskalvik.com/sgp-tools
6
6
  Author: Kalvik
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- __version__ = "1.1.7"
3
+ __version__ = "1.1.8"
4
4
 
5
5
  setup(
6
6
  name='sgptools',
@@ -12,7 +12,7 @@ The library includes python code for the following:
12
12
 
13
13
  """
14
14
 
15
- __version__ = "1.1.7"
15
+ __version__ = "1.1.8"
16
16
  __author__ = 'Kalvik'
17
17
 
18
18
  from .models.core import *
@@ -66,21 +66,24 @@ class OSGPR_VFE(GPModel, InternalDataTrainingLossMixin):
66
66
  Z = np.vstack((old_Z, new_Z))
67
67
  return Z
68
68
 
69
- def update(self, data, inducing_variable=None):
69
+ def update(self, data, inducing_variable=None, update_inducing=True):
70
70
  """Configure the OSGPR to adapt to a new batch of data.
71
71
  Note: The OSGPR needs to be trained using gradient-based approaches after update.
72
72
 
73
73
  Args:
74
74
  data (tuple): (X, y) ndarrays with new batch of inputs (n, d) and labels (n, ndim)
75
+ inducing_variable (ndarray): (m_new, d): New initial inducing points
76
+ update_inducing (bool): Whether to update the inducing points
75
77
  """
76
78
  self.X, self.Y = self.data = gpflow.models.util.data_input_to_tensor(data)
77
79
  self.num_data = self.X.shape[0]
78
80
 
79
81
  # Update the inducing points
80
82
  self.Z_old.assign(self.inducing_variable.Z.numpy())
81
- if inducing_variable is None:
83
+ if inducing_variable is None and update_inducing:
82
84
  inducing_variable = self.init_Z()
83
- self.inducing_variable.Z.assign(inducing_variable)
85
+ if inducing_variable is not None:
86
+ self.inducing_variable.Z.assign(inducing_variable)
84
87
 
85
88
  # Get posterior mean and covariance for the old inducing points
86
89
  mu_old, Su_old = self.predict_f(self.Z_old, full_cov=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sgptools
3
- Version: 1.1.7
3
+ Version: 1.1.8
4
4
  Summary: Software Suite for Sensor Placement and Informative Path Planning
5
5
  Home-page: https://www.itskalvik.com/sgp-tools
6
6
  Author: Kalvik
File without changes
File without changes
File without changes
File without changes
File without changes