Skip to content

Commit 063b252

Browse files
committed
minor polish
1 parent b6ed036 commit 063b252

4 files changed

+21
-21
lines changed

01 - Why scikit-learn.ipynb

-18
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,6 @@
2525
"* Provides \"standard\" bits of your ML worflow.\n",
2626
"* Tooling in which you can plug in your custom model with ease."
2727
]
28-
},
29-
{
30-
"cell_type": "markdown",
31-
"metadata": {
32-
"collapsed": true
33-
},
34-
"source": [
35-
"#scikit-learn.github.io/dev"
36-
]
37-
},
38-
{
39-
"cell_type": "code",
40-
"execution_count": null,
41-
"metadata": {
42-
"collapsed": true
43-
},
44-
"outputs": [],
45-
"source": []
4628
}
4729
],
4830
"metadata": {

02 - First Steps.ipynb

+13
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,19 @@
411411
"Then train an evaluate a classifier of your choice.\n"
412412
]
413413
},
414+
{
415+
"cell_type": "code",
416+
"execution_count": null,
417+
"metadata": {
418+
"collapsed": false
419+
},
420+
"outputs": [],
421+
"source": [
422+
"from sklearn.datasets import load_iris\n",
423+
"iris = load_iris()\n",
424+
"print(iris.DESCR)"
425+
]
426+
},
414427
{
415428
"cell_type": "code",
416429
"execution_count": null,

06 - Grid Searches for Hyper Parameters.ipynb

-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@
158158
"outputs": [],
159159
"source": [
160160
"# We extract just the scores\n",
161-
"%matplotlib inline\n",
162-
"import matplotlib.pyplot as plt\n",
163161
"\n",
164162
"scores = [x.mean_validation_score for x in grid_search.grid_scores_]\n",
165163
"scores = np.array(scores).reshape(6, 5)\n",

08 - Working With Text Data.ipynb

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
"import numpy as np"
1414
]
1515
},
16+
{
17+
"cell_type": "markdown",
18+
"metadata": {},
19+
"source": [
20+
"# Working with Text Data"
21+
]
22+
},
1623
{
1724
"cell_type": "markdown",
1825
"metadata": {},
@@ -310,7 +317,7 @@
310317
"* Create a pipeine using the count vectorizer and SVM (see 07). Train and score using the pipeline.\n",
311318
"* Vary the n_gram_range in the count vectorizer, visualize the changed coefficients.\n",
312319
"* Grid search the C in the LinearSVC using the pipeline.\n",
313-
"* Grid search the C in the LinearSVC together with the n_gram_range."
320+
"* Grid search the C in the LinearSVC together with the n_gram_range (try (1,1), (1, 2), (2, 2))"
314321
]
315322
},
316323
{

0 commit comments

Comments
 (0)