Closed Benfeitas closed 5 years ago
In episode 8, numpy is imported as import numpy but then the beta distribution calls it with np. So it raises the import error for np.
numpy
import numpy
beta
np
beta_draws = np.random.beta(a, b)
Either import numpy as np and fix other lines where it is used; or fix beta_draws = numpy.random.beta(a, b).
import numpy as np
beta_draws = numpy.random.beta(a, b)
I caught this after teaching last month, and then forgot to fix it. I'll sort that out now.
Thanks!
In episode 8,
numpy
is imported asimport numpy
but then thebeta
distribution calls it withnp
. So it raises the import error fornp
.beta_draws = np.random.beta(a, b)
Either
import numpy as np
and fix other lines where it is used; or fixbeta_draws = numpy.random.beta(a, b)
.