File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ Both TF and TF-IDF can be computed as follows::
242
242
243
243
244
244
Training a linear classifier
245
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
245
+ ----------------------------
246
246
247
247
Now that we have our feature, we can train a linear classifier to
248
248
try to predict the category of a post::
@@ -268,7 +268,7 @@ the features using the same feature extracting chain::
268
268
269
269
270
270
Building a pipeline
271
- ~~~~~~~~~~~~~~~~~~~
271
+ -------------------
272
272
273
273
In order to make the vectorizer => transformer => classifier easier
274
274
to work with, scikit-learn provides a ``Pipeline `` class that behaves
@@ -287,7 +287,7 @@ We can now train the model with a single command::
287
287
288
288
289
289
Evaluation of the performance on the test set
290
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290
+ ---------------------------------------------
291
291
292
292
Evaluating the predictive accurracy of the model is equally easy::
293
293
@@ -326,7 +326,7 @@ analysis of the results::
326
326
327
327
328
328
Parameter tuning using grid search
329
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
329
+ ----------------------------------
330
330
331
331
Instead of tweaking the parameters of the various components of the
332
332
chain, it is possible to run an exhaustive search of the best
You can’t perform that action at this time.
0 commit comments