Python Forum
Function for the Normal Loss Function L(z)
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:

[Image: tH8u6.png]

Does a package exist which provides a function to do so? What is the name of the package and function?
Reply
#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.
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 1,922 Nov-12-2020, 06:36 AM
Last Post: AlekseyPython
  Loss and Accuracy Figures. Hani 3 3,063 May-20-2020, 06:55 PM
Last Post: jefsummers
  How to graph a normal distribution? royer14 0 2,019 Apr-22-2019, 09:16 PM
Last Post: royer14
  function parameter function bendarodes 0 1,983 Feb-24-2019, 11:52 AM
Last Post: bendarodes
  Question about calling a function that calls a function Afterdarkreader 9 4,978 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