Skip to Content
Mastering Numerical Computing with NumPy
book

Mastering Numerical Computing with NumPy

by Umit Mert Cakmak, Tiago Antao, Mert Cuhadaroglu
June 2018
Intermediate to advanced
248 pages
5h 27m
English
Packt Publishing
Content preview from Mastering Numerical Computing with NumPy

Loss and error functions

In the previous subsections, we explain supervised and unsupervised learning. Regardless of which machine learning algorithm is used, our main challenge is regarding issues with optimization. In optimization functions, we are actually trying to minimize the loss function. Imagine a case where you are trying to optimize your monthly savings. In a closed state, what you will do is minimize your spending, in other words, minimize your loss function.

A very common way to build a loss function is starting with the difference between the predicted value and the actual value. In general, we try to estimate the parameters of our model, and then prediction is made. The main measurement that we can use to evaluate how good ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Numerical Computing with Python

Numerical Computing with Python

Pratap Dangeti, Allen Yu, Claire Chung, Aldrin Yim
Scientific Computing with Python - Second Edition

Scientific Computing with Python - Second Edition

Claus Führer, Claus Fuhrer, Jan Erik Solem, Olivier Verdier
SciPy and NumPy

SciPy and NumPy

Eli Bressert

Publisher Resources

ISBN: 9781788993357Supplemental Content