When I try to copy a PointMass random variable I get an Error:
import tensorflow as tf
import edward as ed
norm = ed.models.Normal(tf.zeros(1), tf.ones(1))
pm = ed.models.PointMass(tf.zeros(1))
TypeError: __init__() takes at least 2 arguments (4 given)
It seems that for RandomVariable that are directly derived from tensorflow distributions rv.args and rv.kwargs refer to the arguments needed for recreating them, while for PointMass rv._kwargs contains the arguments of super(PointMass, self).init in the constructor and the params argument needed for creating a copy is missing entirely.
Is there a reason why random_variables.py doesn't use the copy() method which could then be easily implemented in PointMass and other classes that derive from RandomVariable?