Book Image

Building Machine Learning Projects with TensorFlow

By : Rodolfo Bonnin
Book Image

Building Machine Learning Projects with TensorFlow

By: Rodolfo Bonnin

Overview of this book

<p>This book of projects highlights how TensorFlow can be used in different scenarios - this includes projects for training models, machine learning, deep learning, and working with various neural networks. Each project provides exciting and insightful exercises that will teach you how to use TensorFlow and show you how layers of data can be explored by working with Tensors. Simply pick a project that is in line with your environment and get stacks of information on how to implement TensorFlow in production.</p>
Table of Contents (16 chapters)
Building Machine Learning Projects with TensorFlow
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Logistic function predecessor - the logit functions


Before we study the logistic function, we will review the original function on which it is based, and which gives it some of its more general properties.

Essentially, when we talk about the logit function, we are working with the function of a random variable p, more specifically, one corresponding with a Bernoulli distribution.

Bernoulli distribution

Before explaining theoretical details it is worthwhile noting that a Bernoulli distribution is a random variable that:

  • Takes a value of 0 with a failure probability of q = 1 - p

  • Takes a value of 1 with a success probability of p

It can be expressed as follows (for a random variable X with Bernoulli distribution):

This is the kind of probability distribution that will represent the probability of occurrence of the events as binary options, just as we want to represent our variables (existence of features, event occurrence, causality of phenomena, and so on).

Link function

As we are trying to build...