You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, my example cases for exponential regression are giving incorrect results. Would it be possible for someone to check the algorithm on this? (Wolfram alpha gives correct results on this data, so this failure shouldn't be inevitable.) Thank you!
let test_exp () =
let x = Owl.Mat.uniform 50 1 in
let a = 14.8494 in
let l = -4.21473 in
let b = 0. in
let y = Owl.Mat.((a $* exp (-.l $* x)) +$ b) in
let a', l', b' = Owl.Regression.D.exponential x y in
Printf.printf "(%g, %g, %g) (%g, %g, %g)\n" a l b a' l' b'
(* (14.8494, -4.21473, 0) (1.48675e-46, 3.03379e-16, 238.706) *)
The text was updated successfully, but these errors were encountered:
Hello, my example cases for exponential regression are giving incorrect results. Would it be possible for someone to check the algorithm on this? (Wolfram alpha gives correct results on this data, so this failure shouldn't be inevitable.) Thank you!
The text was updated successfully, but these errors were encountered: