-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use gaussian_pdf in Owl.Arr? #627
Comments
I don't get a segfault but I get nonsensical results (~1E-22). There must be a bug in |
Hi @ghennequin. It's interesting that you didn't get a segmentation fault. I think the low value in your result (~1E-22) makes sense because I accidentally set Nonetheless, even if I use a larger (and more reasonable) value for #require "owl";;
open Owl;;
let mu_arr = Arr.zeros [|2|];;
let sigma_arr = Arr.ones [|2|];;
let current_point = Arr.ones [|2|];;
let result_arr = Arr.gaussian_pdf ~mu:mu_arr ~sigma:sigma_arr current_point;; My OS is Ubuntu. |
I'm struggling to figure out how to use the function
gaussian_pdf : mu:arr -> sigma:arr -> arr -> arr
in theOwl.Arr
module. When I tried the following code in the top level (i.e. OCaml's REPL), it crashes due to a segmentation fault:I managed to figure out how to use
gaussian_rvs
, butgaussian_pdf
still eludes me. Thanks a lot in advance!The text was updated successfully, but these errors were encountered: