Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Function for the Normal Loss Function L(z)
#1
I am pretty new to Python and my algorithm is working with the Normal loss function L(z)

L(z)=ϕ(z)−z(1−Φ(z))

I have "z" as an input and need "L(z)" as an output.

A table of that looks like this:

İmage


Does a package exist which provides a function to do so? What is the name of the package and function?
Quote
#2
You can use SciPy package, it includes ϕ(z) and Φ(z) functions (normal probability density and its cumulative distribution function), so you can easily define
L(z) using them.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to graph a normal distribution? royer14 0 331 Apr-22-2019, 09:16 PM
Last Post: royer14
  function parameter function bendarodes 0 278 Feb-24-2019, 11:52 AM
Last Post: bendarodes
  Question about calling a function that calls a function Afterdarkreader 9 1,486 Dec-09-2017, 10:07 PM
Last Post: ezdev

Forum Jump:


Users browsing this thread: 1 Guest(s)