MCPcopy Create free account
hub / github.com/devAmoghS/Machine-Learning-with-Python / sample_from

Function sample_from

natural_language_processing/utils.py:156–163  ·  view source on GitHub ↗

returns i with probability weights[i] / sum(weights)

(weights)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

choose_new_topicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected