This PR adds a new domain called ProductDomain which takes the cartesian product of any number of factor domains. This is done using numpy structured dtypes, so you can, for example, take the product of MultinomialDomain and RealDomain and end up with a dtype like [('k', int, 3), ('f1', float)].
Coverage increased (+3.2%) to 72.351% when pulling 28ed55f02227e0373a70e166e98828162e1c6984 on ihincks:feature-product-domain into 12b2612dfb0410acf6ee010eeb9d262b3914c201 on QInfer:master.
This PR adds a new domain called
ProductDomain
which takes the cartesian product of any number of factor domains. This is done using numpy structured dtypes, so you can, for example, take the product ofMultinomialDomain
andRealDomain
and end up with a dtype like[('k', int, 3), ('f1', float)]
.This PR should be merged after #116 and #115.