Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bayesian Parametric Survival Analysis with PyMC3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peadarcoylezopa

This comment has been minimized.

Show comment
Hide comment
@peadarcoylezopa

peadarcoylezopa Oct 24, 2017

Hey Austin. I run into a bug on this around the \nu cens - TypeError: TensorType does not support boolean mask for indexing such as tensor[x==0]. Instead you can use non_zeros() such as tensor[(x == 0).nonzeros()].

Any suggestions. I tried doing n[(cens).nonzero()] but it leads to problems with alignment further on.

Hey Austin. I run into a bug on this around the \nu cens - TypeError: TensorType does not support boolean mask for indexing such as tensor[x==0]. Instead you can use non_zeros() such as tensor[(x == 0).nonzeros()].

Any suggestions. I tried doing n[(cens).nonzero()] but it leads to problems with alignment further on.

@AustinRochford

This comment has been minimized.

Show comment
Hide comment
@AustinRochford

AustinRochford Oct 31, 2017

@peadarcoylezopa what PyMC3 and Theano versions are you using?

Owner

AustinRochford commented Oct 31, 2017

@peadarcoylezopa what PyMC3 and Theano versions are you using?

@springcoil

This comment has been minimized.

Show comment
Hide comment
@springcoil

springcoil Nov 16, 2017

Hey Austin - the bug turned out to be fixed by a newer version of theano.

Hey Austin - the bug turned out to be fixed by a newer version of theano.

@AustinRochford

This comment has been minimized.

Show comment
Hide comment
@AustinRochford

AustinRochford Nov 16, 2017

Glad to hear it!

Owner

AustinRochford commented Nov 16, 2017

Glad to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment