You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python_scripts/02_numerical_pipeline_introduction.html
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1070,11 +1070,19 @@ <h2>Fit a model and make predictions<a class="headerlink" href="#fit-a-model-and
1070
1070
<p>Learning can be represented as follows:</p>
1071
1071
<p><imgalt="Predictor fit diagram" src="../_images/api_diagram-predictor.fit.svg" /></p>
1072
1072
<p>In scikit-learn an object that has a <codeclass="docutils literal notranslate"><spanclass="pre">fit</span></code> method is called an <strong>estimator</strong>.
1073
-
The method <codeclass="docutils literal notranslate"><spanclass="pre">fit</span></code> is composed of two elements: (i) a <strong>learning algorithm</strong> and
1073
+
If the estimator additionally has :</p>
1074
+
<ulclass="simple">
1075
+
<li><p>a <codeclass="docutils literal notranslate"><spanclass="pre">predict</span></code> method, it is called a <strong>predictor</strong>. Examples of predictors
1076
+
are classifiers or regressors.</p></li>
1077
+
<li><p>a <codeclass="docutils literal notranslate"><spanclass="pre">transform</span></code> method, it is called a <strong>transformer</strong>. Examples of
1078
+
transformers are scalers or encoders. We will see more about transformers in
1079
+
the next notebook.</p></li>
1080
+
</ul>
1081
+
<p>The method <codeclass="docutils literal notranslate"><spanclass="pre">fit</span></code> is composed of two elements: (i) a <strong>learning algorithm</strong> and
1074
1082
(ii) some <strong>model states</strong>. The learning algorithm takes the training data and
1075
1083
training target as input and sets the model states. These model states are
1076
-
later used to either predict (for classifiers and regressors) or transform
1077
-
data (for transformers).</p>
1084
+
later used to either predict or transform data as explained above. See the
1085
+
glossary for more detailed definitions.</p>
1078
1086
<p>Both the learning algorithm and the type of model states are specific to each
1079
1087
type of model.</p>
1080
1088
<divclass="admonition note">
@@ -1091,8 +1099,7 @@ <h2>Fit a model and make predictions<a class="headerlink" href="#fit-a-model-and
1091
1099
</div>
1092
1100
</div>
1093
1101
</div>
1094
-
<p>An estimator (an object with a <codeclass="docutils literal notranslate"><spanclass="pre">fit</span></code> method) with a <codeclass="docutils literal notranslate"><spanclass="pre">predict</span></code> method is called
1095
-
a <strong>predictor</strong>. We can illustrate the prediction mechanism as follows:</p>
1102
+
<p>We can illustrate the prediction mechanism as follows:</p>
0 commit comments