A typical supervised learning environment would consist of the following components:

  • Data: the inputs and outputs we use to create a model.
  • Model: An approximation of the relationship between and . One such approximation could be the logistic function.
  • Parameters: Weights assigned to various inputs that need to be learnt from the data.
  • Learning Model: An algorithm for learning the parameters of the model using the data.
  • Objective/loss function: A guide to the learning algorithm.

The learning algorithm tries to minimise the loss function.

Let’s apply to these to the example of whether we want to watch a movie. In such a context:

  • Data: : the input vector and = {yes/no}
  • Model: An approximation of the relationship between the input and output. Let’s say we decide to use the logistic function:
  • Parameters: .
  • Learning algorithm: Gradient Descent (will be covered soon)
  • Objective function:

Note:

  • is used instead of since the model is an approximation.
  • The loss function takes the squared difference between the predicted output and the real output instead of the modulus since we want the function to be differentiable.

The learning algorithm seeks to find the weight vector that minimises the objective function.