Skip to content

Commit d0400d6

Browse files
authored
Fix a few typos
1 parent c628cd2 commit d0400d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/05.07-Support-Vector-Machines.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
"### Fitting a support vector machine\n",
202202
"\n",
203203
"Let's see the result of an actual fit to this data: we will use Scikit-Learn's support vector classifier to train an SVM model on this data.\n",
204-
"For the time being, we will use a linear kernel and set the ``C`` parameter to a very large number (we'll discussthe meaning of these in more depth momentarily)."
204+
"For the time being, we will use a linear kernel and set the ``C`` parameter to a very large number (we'll discuss the meaning of these in more depth momentarily)."
205205
]
206206
},
207207
{
@@ -998,7 +998,7 @@
998998
"However, SVMs have several disadvantages as well:\n",
999999
"\n",
10001000
"- The scaling with the number of samples $N$ is $\\mathcal{O}[N^3]$ at worst, or $\\mathcal{O}[N^2]$ for efficient implementations. For large numbers of training samples, this computational cost can be prohibitive.\n",
1001-
"- The results are strongly dependent on a suitable choice for the softening parameter $C$. This must be carefully chosen via cross-validation, which can be expensive as datasets grow in size\n",
1001+
"- The results are strongly dependent on a suitable choice for the softening parameter $C$. This must be carefully chosen via cross-validation, which can be expensive as datasets grow in size.\n",
10021002
"- The results do not have a direct probabilistic interpretation. This can be estimated via an internal cross-validation (see the ``probability`` parameter of ``SVC``), but this extra estimation is costly.\n",
10031003
"\n",
10041004
"With those traits in mind, I generally only turn to SVMs once other simpler, faster, and less tuning-intensive methods have been shown to be insufficient for my needs.\n",

0 commit comments

Comments
 (0)