twiecki / WhileMyMCMCGentlySamples

my blog
269 stars 204 forks source link

Is it python2.7 problem that I got this error ? #1

Closed t0mst0ne closed 8 years ago

t0mst0ne commented 8 years ago

@twiecki
Thanks for the example and talks on pydata 2016 I tried to run bayesian_neural_network.v3.ipynb but I got this error :

contour = ax.contourf(*grid, ppc['out'].mean(axis=0).reshape(100, 100), cmap=cmap)

SyntaxError: only named arguments may follow *expression

Is it the python2.7 problem ?

=> Oh yes, its unpacking in python2.7 contour = ax.contourf(grid[0],grid[1], ppc['out'].mean(axis=0).reshape(100, 100), cmap=cmap) solve my question