package gpr

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Deriv.TrainedSource

Trained model with derivative information

Sourcetype t

Type of trained models with derivatives

Sourcetype hyper_t

Type of trained models for general hyper parameters

Sourceval calc : Model.t -> targets:Lacaml.D.vec -> t

calc model ~targets

  • returns

    trained model with derivative information given the untrained model and targets.

Sourceval calc_eval : t -> Eval.Trained.t

calc_eval trained

  • returns

    trained model without derivative information given trained.

Sourceval calc_log_evidence_sigma2 : t -> float

calc_log_evidence_sigma2 trained

  • returns

    the derivative of the log evidence for the trained model with respect to the noise level (sigma2). This includes the contribution to the derivative by model.

Sourceval prepare_hyper : t -> hyper_t

prepare_hyper trained

  • returns

    the trained model prepared for calculating derivatives for arbitrary hyper parameters.

Sourceval calc_log_evidence : hyper_t -> Spec.Hyper.t -> float

calc_log_evidence hyper_t hyper

  • returns

    the derivative of the log evidence given prepared, trained model hyper_t with respect to the hyper variable.

OCaml

Innovation. Community. Security.