Answers.Body: <p><strong>In machine learning, when you train a model, you adjust (or change) the parameters (or weights) of the model so that its performance in solving a certain task increases.</strong></p>
  
  <p>There's little difference between the idea of training a model and the idea of training an animal. In fact, here's the dictionary definition of the verb <em>to train</em></p>
  
  <blockquote>
    <p>teach (a person or animal) a particular skill or type of behaviour through practice and instruction over a period of time</p>
  </blockquote>
  
  <p>If you train a model, you also teach a skill or type of behavior through practice and instruction. For example, if you train a model to solve an object classification problem, then you teach the model to classify certain objects according to their properties (which is the skill that the model learns).</p>
  
  <p>There are different ways to train a model, depending on the problem you want to solve, the algorithms that you use to train the model, and the available data. </p>
  
  <p>If you have a <em>labeled dataset</em>, then you train a model with a supervisory signal (the labels), i.e. you explicitly tell the model the output that it is supposed to produce for each input, and, if it does not produce it, then you adjust its parameters so that next time it is more likely to produce the correct output for that input. This is called <strong>supervised learning</strong> (or training).</p>
  
  <p>In certain cases, you do not have the correct output that the model is supposed to produce for each input, but you only have a <em>reward</em> (or reinforcement) signal. So, your training (or learning) algorithm needs to adjust the parameters of the model only based on the reward signal. This is called <strong>reinforcement learning</strong> (or training).</p>
  
  <p>Finally, there's also <strong>unsupervised learning</strong> (or training), where you are given a dataset without labels or rewards, but you want to learn e.g. a probability distribution that this data was likely sampled from or separate this data into groups. For example, in k-means (a clustering algorithm), you want to split the data into groups so that similar objects belong to the same group and dissimilar objects belong to different groups. Note that k-means is a learning algorithm, so it's not a model, but you could consider the centroids of the clusters the parameters of the model (a clustering model).</p>
  
  <p>There are variations or subcategories of these learning paradigms and you can also combine them, so sometimes the difference between them is not so clear. </p>
  
  <p>There are also different types of models. There are <a href="https://stats.stackexchange.com/q/268638/82135">parametric (e.g. a linear regression model) and non-parametric (e.g. neural networks) models</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-05T14:37:08.987Z
Answers.LastActivityDate: 2020-06-05T15:35:17.480Z
Answers.LastEditDate: 2020-06-05T15:35:17.480Z
Answers.UserDisplayName: nbro
Answers.Body: <p>Training a model simply means learning good values for all the weights and the bias from labeled examples. In supervised learning, a machine learning algorithm builds a model by examining many examples and attempting to find a model that minimizes loss; this process is called empirical risk minimization.</p>
  
  <p>Loss is the penalty for a bad prediction. That is, loss is a number indicating how bad the model's prediction was on a single example. If the model's prediction is perfect, the loss is zero; otherwise, the loss is greater. The goal of training a model is to find a set of weights and biases that have low loss, on average, across all examples. shows a high loss model on the left and a low loss model on the right.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-06T05:39:42.783Z
Answers.LastActivityDate: 2020-06-06T05:39:42.783Z
Answers.UserDisplayName: Hiren Namera
Body: <p>We hear this many time for different problems</p>
  
  <blockquote>
    <p>Train a model to solve this problem!</p>
  </blockquote>
  
  <p>What do we really mean by training a model?</p>
  
Tags: <neural-networks><machine-learning><deep-learning><training>
Title: What does it mean to train a model?
UserDisplayName: Kaivalya Swami
ThreadText: # What does it mean to train a model?
  
  (Asked by: username_0 on 2020-06-05)
  
  We hear this many time for different problems
  
  > Train a model to solve this problem!
  
  What do we really mean by training a model?
  
  **Tags:** neural-networks, machine-learning, deep-learning, training
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-06-05. Score: 3
  
  **In machine learning, when you train a model, you adjust (or change) the parameters (or weights) of the model so that its performance in solving a certain task increases.**
  
  There's little difference between the idea of training a model and the idea of training an animal. In fact, here's the dictionary definition of the verb *to train*
  
  > teach (a person or animal) a particular skill or type of behaviour through practice and instruction over a period of time
  
  If you train a model, you also teach a skill or type of behavior through practice and instruction. For example, if you train a model to solve an object classification problem, then you teach the model to classify certain objects according to their properties (which is the skill that the model learns).
  
  There are different ways to train a model, depending on the problem you want to solve, the algorithms that you use to train the model, and the available data.
  
  If you have a *labeled dataset*, then you train a model with a supervisory signal (the labels), i.e. you explicitly tell the model the output that it is supposed to produce for each input, and, if it does not produce it, then you adjust its parameters so that next time it is more likely to produce the correct output for that input. This is called **supervised learning** (or training).
  
  In certain cases, you do not have the correct output that the model is supposed to produce for each input, but you only have a *reward* (or reinforcement) signal. So, your training (or learning) algorithm needs to adjust the parameters of the model only based on the reward signal. This is called **reinforcement learning** (or training).
  
  Finally, there's also **unsupervised learning** (or training), where you are given a dataset without labels or rewards, but you want to learn e.g. a probability distribution that this data was likely sampled from or separate this data into groups. For example, in k-means (a clustering algorithm), you want to split the data into groups so that similar objects belong to the same group and dissimilar objects belong to different groups. Note that k-means is a learning algorithm, so it's not a model, but you could consider the centroids of the clusters the parameters of the model (a clustering model).
  
  There are variations or subcategories of these learning paradigms and you can also combine them, so sometimes the difference between them is not so clear.
  
  There are also different types of models. There are [parametric (e.g. a linear regression model) and non-parametric (e.g. neural networks) models](https://stats.stackexchange.com/q/268638/82135).
  
  
  ---
  
  ### Answer by username_2 on 2020-06-06. Score: 0
  
  Training a model simply means learning good values for all the weights and the bias from labeled examples. In supervised learning, a machine learning algorithm builds a model by examining many examples and attempting to find a model that minimizes loss; this process is called empirical risk minimization.
  
  Loss is the penalty for a bad prediction. That is, loss is a number indicating how bad the model's prediction was on a single example. If the model's prediction is perfect, the loss is zero; otherwise, the loss is greater. The goal of training a model is to find a set of weights and biases that have low loss, on average, across all examples. shows a high loss model on the left and a low loss model on the right.
  
  
  ---
  
  