MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / main

Function main

maths/entropy.py:111–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109
110
111def main():
112 import doctest
113
114 doctest.testmod()
115 # text = (
116 # "Had repulsive dashwoods suspicion sincerity but advantage now him. Remark "
117 # "easily garret nor nay. Civil those mrs enjoy shy fat merry. You greatest "
118 # "jointure saw horrible. He private he on be imagine suppose. Fertile "
119 # "beloved evident through no service elderly is. Blind there if every no so "
120 # "at. Own neglected you preferred way sincerity delivered his attempted. To "
121 # "of message cottage windows do besides against uncivil. Delightful "
122 # "unreserved impossible few estimating men favourable see entreaties. She "
123 # "propriety immediate was improving. He or entrance humoured likewise "
124 # "moderate. Much nor game son say feel. Fat make met can must form into "
125 # "gate. Me we offending prevailed discovery. "
126 # )
127
128 # calculate_prob(text)
129
130
131if __name__ == "__main__":

Callers 1

entropy.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected