Negative marginal CACs

Quick update here in case someone else runs into the Elemwise issue:

I dug up a really old doc which mentioned that we can often use plain numpy functions in place of theano tensor functions. Switching tt. to np. whenever possible solved my issue. (Of course some theano functions don’t have numpy equivalents.)

Curiously my ad-stock function continues to work fine with tt. :slightly_smiling_face: