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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy