Skip to content

Commit 1d7e73b

Browse files
committed
docstring fixes
1 parent d217b95 commit 1d7e73b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modAL/disagreement.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ def vote_entropy_sampling(committee, X, n_instances=1, **disagreement_measure_kw
149149
Returns
150150
-------
151151
query_idx: numpy.ndarray of shape (n_instances, )
152-
The indices of the instances from X_pool chosen to be labelled.
152+
The indices of the instances from X chosen to be labelled.
153153
154154
X[query_idx]: numpy.ndarray of shape (n_instances, n_features)
155-
The instances from X_pool chosen to be labelled.
155+
The instances from X chosen to be labelled.
156156
"""
157157
disagreement = vote_entropy(committee, X, **disagreement_measure_kwargs)
158158
query_idx = multi_argmax(disagreement, n_instances=n_instances)
@@ -181,10 +181,10 @@ def consensus_entropy_sampling(committee, X, n_instances=1, **disagreement_measu
181181
Returns
182182
-------
183183
query_idx: numpy.ndarray of shape (n_instances, )
184-
The indices of the instances from X_pool chosen to be labelled.
184+
The indices of the instances from X chosen to be labelled.
185185
186186
X[query_idx]: numpy.ndarray of shape (n_instances, n_features)
187-
The instances from X_pool chosen to be labelled.
187+
The instances from X chosen to be labelled.
188188
"""
189189
disagreement = consensus_entropy(committee, X, **disagreement_measure_kwargs)
190190
query_idx = multi_argmax(disagreement, n_instances=n_instances)
@@ -213,10 +213,10 @@ def max_disagreement_sampling(committee, X, n_instances=1, **disagreement_measur
213213
Returns
214214
-------
215215
query_idx: numpy.ndarray of shape (n_instances, )
216-
The indices of the instances from X_pool chosen to be labelled.
216+
The indices of the instances from X chosen to be labelled.
217217
218218
X[query_idx]: numpy.ndarray of shape (n_instances, n_features)
219-
The instances from X_pool chosen to be labelled.
219+
The instances from X chosen to be labelled.
220220
"""
221221
disagreement = KL_max_disagreement(committee, X, **disagreement_measure_kwargs)
222222
query_idx = multi_argmax(disagreement, n_instances=n_instances)
@@ -242,10 +242,10 @@ def max_std_sampling(regressor, X, n_instances=1, **predict_kwargs):
242242
Returns
243243
-------
244244
query_idx: numpy.ndarray of shape (n_instances, )
245-
The indices of the instances from X_pool chosen to be labelled.
245+
The indices of the instances from X chosen to be labelled.
246246
247247
X[query_idx]: numpy.ndarray of shape (n_instances, n_features)
248-
The instances from X_pool chosen to be labelled.
248+
The instances from X chosen to be labelled.
249249
"""
250250
_, std = regressor.predict(X, return_std=True, **predict_kwargs)
251251
std = std.reshape(len(X), )

0 commit comments

Comments
 (0)