For the build_model() function, I needed to change for i in xrange(0, num_passes): to just range(0, num_passes): to make it work in Python 3.
For the final print statement, I also needed to add parentheses. After those two updates, I was able to get a great result. Thanks!
For the
build_model()function, I needed to changefor i in xrange(0, num_passes):to justrange(0, num_passes):to make it work in Python 3.For the final print statement, I also needed to add parentheses. After those two updates, I was able to get a great result. Thanks!