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)
I am pretty new to Python and my algorithm is working with the Normal loss function L(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?
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.

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

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