Learn R Programming

BayesFluxR (version 0.1.3)

InverseGamma: Create an Inverse-Gamma Prior

Description

Creates and Inverse Gamma prior in Julia using Distributions.jl

Usage

InverseGamma(shape = 2, scale = 2)

Value

A list with the following content

  • juliavar - julia variable containing the distribution

  • juliacode - julia code used to create the distribution

Arguments

shape

shape parameter

scale

scale parameter

See Also

Examples

Run this code
if (FALSE) {
  ## Needs previous call to `BayesFluxR_setup` which is time
  ## consuming and requires Julia and BayesFlux.jl
  BayesFluxR_setup(installJulia=TRUE, seed=123)
  net <- Chain(Dense(5, 1))
  like <- likelihood.feedforward_normal(net, InverseGamma(2.0, 0.5))
}

Run the code above in your browser using DataLab