infergo: bitbucket.org/dtolpin/infergo/model Index | Files

package model

import "bitbucket.org/dtolpin/infergo/model"

Package model specifies the interface of a probabilistc model.

Index

Package Files

model.go

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-04-23. Refresh now. Tools for package owners.