hi all;
i want to implement a normal log in Julia, I used “using Distributions” and i’m trying to run in it in Jupiter notebook but when I press TAB and write LogNormal it doesn’t show me anything like there doesn’t exist any LogNormal function. do you have any idea to help me, please?
here is the part of my code that I want to implement:
using Revise # lets you change A2funcs without restarting julia!
includet(“A2_src.jl”)
using Plots
using Statistics: mean
using Zygote
using Test
using Logging
using Distributions
using .A2funcs: log1pexp # log(1 + exp(x)) stable
using .A2funcs: factorized_gaussian_log_density
using .A2funcs: skillcontour!
using .A2funcs: plot_line_equal_skill!
includet is a function of Revise, making Revise track the included file for changes and reloading on the fly. It’s not related to the question in general.
that is another source file. it’s not important here, main problem is don’t know how to implement a log normal as a prior, as i’ve mentioned it in the question as #todo
LogNormal() # Log-normal distribution with zero log-mean and unit scale
LogNormal(mu) # Log-normal distribution with log-mean mu and unit scale
LogNormal(mu, sig) # Log-normal distribution with log-mean mu and scale sig
params(d) # Get the parameters, i.e. (mu, sig)
meanlogx(d) # Get the mean of log(X), i.e. mu
varlogx(d) # Get the variance of log(X), i.e. sig^2
stdlogx(d) # Get the standard deviation of log(X), i.e. sig
i am writing this code on my jupyter notebook and when i press TAB in order to see what choices i have for the Distributions, it doesn’t mention LogNormal.
For me it works, with Revise and without. The only thing to pay attention is for me, that the kernel is idle when trying to TAB complete.
Tried with Julia 1.3.1
The version of the notebook server is: 5.6.0 -9de07b7, Python 3.7.0 (default, Jun 28 2018, 13:15:42) [GCC 7.2.0]