how to fit a method belonging to an instance with pymc3?

后端 未结 3 1390
名媛妹妹
名媛妹妹 2020-11-30 14:12

I failed to fit a method belonging to an instance of a class, as a Deterministic function, with PyMc3. Can you show me how to do that ?

For simplicity, my case is su

3条回答
  •  难免孤独
    2020-11-30 14:30

    theano.compile.ops.as_op is just a short-hand for defining simple Theano Ops. If you want to code more involved ones, it is better to define it in a separate class. Objects of this class could of course take a reference to an instance of your cprofile if that really is necessary.

    http://deeplearning.net/software/theano/extending/extending_theano.html

提交回复
热议问题