Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • c75bac1
  • /
  • gpflow
  • /
  • conditionals
  • /
  • dispatch.py
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:de96ebf2a83c8f726f2018b90137ef826f530b4f
directory badge Iframe embedding
swh:1:dir:788a4cca9ce8e926b0fda0c822ab60b690f70ed2
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
dispatch.py
# Copyright 2017-2020 The GPflow Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from deprecated import deprecated

from ..utilities import Dispatcher

conditional = Dispatcher("conditional")
conditional._gpflow_internal_register = conditional.register

# type-ignore below is because mypy doesn't like it when we assign to a function.
conditional.register = deprecated(  # type: ignore[assignment]
    reason="Registering new implementations of conditional() is deprecated. "
    "Instead, create your own subclass of gpflow.posteriors.AbstractPosterior "
    "and register an implementation of gpflow.posteriors.get_posterior_class "
    "that returns your class."
)(conditional._gpflow_internal_register)

sample_conditional = Dispatcher("sample_conditional")

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API