infergo: Index | Files

package model

import ""

Package model specifies the interface of a probabilistc model.


Package Files


func Shift Uses

func Shift(px *[]float64, n int) []float64

Shift shifts n parameters from x, useful for destructuring the parameter vector.

type Model Uses

type Model interface {
    Observe(parameters []float64) float64

A probabilistic model must implement interface Model. Method Observe accepts a vector of parameters and returns the loglikelihood. Computation of the gradient is automatically induced through algorithmic differentiation.

Package model is imported by 1 packages. Updated 2019-08-21. Refresh now. Tools for package owners.