##### Function for the Normal Loss Function L(z)
 Function for the Normal Loss Function L(z) Smelly Unladen Swallow Posts: 1 Threads: 1 Joined: Jan 2019 Reputation: 0 Jan-31-2019, 02:54 PM 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: Does a package exist which provides a function to do so? What is the name of the package and function? Reply Posts: 818 Threads: 1 Joined: Mar 2018 Reputation: 111 Feb-01-2019, 11:49 AM 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. Reply

 Possibly Related Threads… Thread Author Replies Views Last Post Why does a Numpy with Intel MKL have the same performance as a normal one? AlekseyPython 0 186 Nov-12-2020, 06:36 AM Last Post: AlekseyPython Loss and Accuracy Figures. Hani 3 780 May-20-2020, 06:55 PM Last Post: jefsummers How to graph a normal distribution? royer14 0 732 Apr-22-2019, 09:16 PM Last Post: royer14 function parameter function bendarodes 0 538 Feb-24-2019, 11:52 AM Last Post: bendarodes Question about calling a function that calls a function Afterdarkreader 9 2,041 Dec-09-2017, 10:07 PM Last Post: ezdev

Forum Jump:

### User Panel Messages

##### Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020