MCPcopy
hub / github.com/GPflow/GPflow / predict_f

Method predict_f

gpflow/models/vgp.py:146–161  ·  view source on GitHub ↗
(
        self, Xnew: InputData, full_cov: bool = False, full_output_cov: bool = False
    )

Source from the content-addressed store, hash-verified

144
145 @inherit_check_shapes
146 def predict_f(
147 self, Xnew: InputData, full_cov: bool = False, full_output_cov: bool = False
148 ) -> MeanAndVariance:
149 assert_params_false(self.predict_f, full_output_cov=full_output_cov)
150
151 X_data, _Y_data = self.data
152 mu, var = conditional(
153 Xnew,
154 X_data,
155 self.kernel,
156 self.q_mu,
157 q_sqrt=self.q_sqrt,
158 full_cov=full_cov,
159 white=True,
160 )
161 return mu + self.mean_function(Xnew), var
162
163
164class VGP_with_posterior(VGP_deprecated):

Callers 1

update_vgp_dataFunction · 0.45

Calls 1

assert_params_falseFunction · 0.85

Tested by

no test coverage detected