Skip to content

Commit 21d68ca

Browse files
authored
Update README.md
1 parent 6f79f6d commit 21d68ca

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,18 @@ LinearSVC is a python class from Scikit Learn library
246246
```
247247

248248
LinearSVC performs classification.
249-
LinearSVC finds a linear separator. A line separating classes.
249+
LinearSVC finds a linear separator. A line separating classes.
250250
There are many linear separators: It will choose the optimal one, i.e the one that maximizes our confidence, i.e the one that maximizes the geometrical margin, i.e the one that maximizes the distance between itself and the closest/nearest data point point
251+
251252
Support vectors are the data points, which are closest to the line
252253

253254
![SVM.png](resources/SVM.png)
254255

255256
## Support vector classifier
256257

257258
Support vector machines (svm) is a set of supervised learning methods in the Scikit Learn library.
258-
Support vector classifier (SVC) is a python class capable of performing classification on a dataset.
259-
The class SVC is in the module svm of the Scikit Learn library
259+
Support vector classifier (SVC) is a python class capable of performing classification on a dataset.
260+
The class SVC is in the module svm of the Scikit Learn library
260261
```
261262
>>> from sklearn.svm import SVC
262263
>>> clf = SVC(kernel='linear')
@@ -271,9 +272,10 @@ SVC with parameter kernel='linear' finds the linear separator that maximizes the
271272
k-NN classification is used with a supervised learning set.
272273
K is an integer.
273274
To classify a new data point, this algorithm calculates the distance between the new data point and the other data points.
274-
The distance can be Euclidean, Manhattan, ....
275+
The distance can be Euclidean, Manhattan, ....
275276
Once the algorithm knows the K closest neighbors of the new data point, it takes the most common class of these K closest neighbors, and assign that most common class to the new data point.
276-
So the new data point is assigned to the most common class of its k nearest neighbors. the new data point is assigned to the class to which the majority of its K nearest neighbors belong to.
277+
So the new data point is assigned to the most common class of its k nearest neighbors.
278+
So the new data point is assigned to the class to which the majority of its K nearest neighbors belong to.
277279

278280
![KNN.png](resources/KNN.png)
279281

@@ -313,7 +315,7 @@ k ≤ n.
313315

314316
A cluster is a group of data points.
315317
Each cluster has a center, called the centroid.
316-
A cluster centroid is the mean of a cluster (average across all the data points in the cluster).
318+
A cluster centroid is the mean of a cluster (average across all the data points in the cluster).
317319
The radius of a cluster is the maximum distance between all the points and the centroid.
318320

319321
![radius.png](resources/radius.png)

0 commit comments

Comments
 (0)