Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d22bc74

Browse files
committed
Shortened comment.
1 parent 60f022a commit d22bc74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

learning.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,7 @@ def train(dataset, weights):
444444
return train
445445

446446
def replicated_dataset(dataset, weights, n=None):
447-
"""Copy dataset, replicating each example in proportion to the
448-
corresponding weight."""
447+
"Copy dataset, replicating each example in proportion to its weight."
449448
n = n or len(dataset.examples)
450449
result = copy.copy(dataset)
451450
result.examples = weighted_replicate(dataset.examples, weights, n)

0 commit comments

Comments
 (0)