code: def __dynamic_expected_value(self, y):
          
  
          return self.model.predict(self.data, np.ones(self.data.shape[0]) * y, output=self.model_output).mean(0)
docs: This computes the expected value conditioned on the given label value.