twiecki / WhileMyMCMCGentlySamples

my blog
267 stars 204 forks source link

array reshape #7

Closed switchscorbra closed 6 years ago

switchscorbra commented 6 years ago

the below line of code provides the following error

contour = ax.contourf(X1_grid, X2_grid, out_sample.eval().mean(axis=0).reshape(100, 100), cmap=cmap)

ValueError: cannot reshape array of size 100 into shape (100,100) i am not sure what the issue is

twiecki commented 6 years ago

I'll look into it, which post is that?

switchscorbra commented 6 years ago

This one:

http://twiecki.github.io/blog/2016/06/01/bayesian-deep-learning/

Also, any help with how I can apply this to UCI data will be much appreciated.

Sent from my iPhone

On 16 Apr 2018, at 17:09, Thomas Wiecki notifications@github.com wrote:

I'll look into it, which post is that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

twiecki commented 6 years ago

@switchscorbra I updated the blog post, see if that fixes it.

switchscorbra commented 6 years ago

Thank you

Sent from my iPhone

On 27 Apr 2018, at 17:39, Thomas Wiecki notifications@github.com wrote:

@switchscorbra I updated the blog post, see if that fixes it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.