10000 Fix misuse of it's · rhiever/scikit-learn@ca4c727 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca4c727

Browse files
committed
Fix misuse of it's
1 parent b6adb92 commit ca4c727

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

doc/modules/label_propagation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ data to some degree. The :class:`LabelPropagation` algorithm performs hard
5555
clamping of input labels, which means :math:`\alpha=1`. This clamping factor
5656
can be relaxed, to say :math:`\alpha=0.8`, which means that we will always
5757
retain 80 percent of our original label distribution, but the algorithm gets to
58-
change it's confidence of the distribution within 20 percent.
58+
change its confidence of the distribution within 20 percent.
5959

6060
:class:`LabelPropagation` uses the raw similarity matrix constructed from
6161
the data with no modifications. In contrast, :class:`LabelSpreading`

doc/themes/scikit-learn/static/ML_MAPS_README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ the different items on the image upon mouseover.
1414
Modifying the map on the docs is currently a little bit tedious,
1515
so I'll try to make it as simple as possible.
1616

17-
1. Editing the layout of the map and it's paths.
17+
1. Editing the layout of the map and its paths.
1818
------------------------------------------------
1919

2020
Use a Graphics editor like Inkscape Vector Graphics Editor

doc/themes/scikit-learn/static/nature.css_t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ div.navbar ul li a:hover {
108108
/*The min-height is added here, to prevent the element from shrinking
109109
too much, while the scripts are still loading the search-bar.
110110
Without it, layout glitches occur, as the element keeps dynamically
111-
changing it's size while its loading-contents adjusts into position.*/
111+
changing its size while its loading-contents adjusts into position.*/
112112
min-height: 42px;
113113
}
114114

doc/tutorial/machine_learning_map/ML_MAPS_README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ the different items on the image upon mouseover.
1414
Modifying the map on the docs is currently a little bit tedious,
1515
so I'll try to make it as simple as possible.
1616

17-
1. Editing the layout of the map and it's paths.
17+
1. Editing the layout of the map and its paths.
1818
------------------------------------------------
1919

2020
Use a Graphics editor like Inkscape Vector Graphics Editor

doc/tutorial/statistical_inference/supervised_learning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Linear regression
155155
.. currentmodule:: sklearn.linear_model
156156

157157
:class:`LinearRegression`,
158-
in it's simplest form, fits a linear model to the data set by adjusting
158+
in its simplest form, fits a linear model to the data set by adjusting
159159
a set of parameters in order to make the sum of the squared residuals
160160
of the model as small as possible.
161161

doc/tutorial/text_analytics/working_with_text_data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ with computer graphics.
393393
has many samples.
394394
395395
By setting ``loss="hinge"`` and ``penalty="l2"`` we are configuring
396-
the classifier model to tune it's parameters for the linear Support
396+
the classifier model to tune its parameters for the linear Support
397397
Vector Machine cost function.
398398
399399
Alternatively we could have used ``sklearn.svm.LinearSVC`` (Linear

sklearn/neighbors/nearest_centroid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def fit(self, X, y):
106106
raise ValueError("threshold shrinking not supported"
107107
" for sparse input")
108108
check_classification_targets(y)
109-
109+
110110
n_samples, n_features = X.shape
111111
le = LabelEncoder()
112112
y_ind = le.fit_transform(y)
@@ -115,7 +115,7 @@ def fit(self, X, y):
115115
if n_classes < 2:
116116
raise ValueError('y has less than 2 classes')
117117

118-
# Mask mapping each class to it's members.
118+
# Mask mapping each class to its members.
119119
self.centroids_ = np.empty((n_classes, n_features), dtype=np.float64)
120120
# Number of clusters in each class.
121121
nk = np.zeros(n_classes)

sklearn/preprocessing/imputation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def _dense_fit(self, X, strategy, missing_values, axis):
281281
# Most frequent
282282
elif strategy == "most_frequent":
283283
# scipy.stats.mstats.mode cannot be used because it will no work
284-
# properly if the first element is masked and if it's frequency
284+
# properly if the first element is masked and if its frequency
285285
# is equal to the frequency of the most frequent valid element
286286
# See https://github.com/scipy/scipy/issues/2636
287287

0 commit comments

Comments
 (0)
0