(no title)
ksaho | 2 years ago
import itertools as itools
xs = [f'{i}-{j}' for i in range(30) for j in range(12)]
ys = ['b', 'g']
zs = list(itools.product(xs, ys))
boys = [z for z in zs if z[1] == 'b']
len(boys)/len(zs)
----
gives me 0.5, or 1/2.
The moral of the article is to set up your universal set correctly and do not throw out any information, now matter how irrelevant.
wruza|2 years ago
I believe your script may require a datacenter and a scalable architecture now.
phalf|2 years ago
phalf|2 years ago
p1esk|2 years ago