In v1.0.1 calling the InteractionSegmentation with a list of proportions summing up to 1. sometimes (wrongly) raises the WrongProportionsException. However, if this list is first converted to a np.array and then passed to the segmentation, the Exception is not raised. (see attachments)
I therefore see two possible solutions:
Require the proportions argument to be a np.array (and not a list as it currently is)
Convert the proportions to a np.array at the beginning of the segment method
What do you think would be best, @giuliowaitforitdavide ?
Hi!
In v1.0.1 calling the
InteractionSegmentation
with a list of proportions summing up to 1. sometimes (wrongly) raises theWrongProportionsException
. However, if this list is first converted to anp.array
and then passed to the segmentation, the Exception is not raised. (see attachments)I therefore see two possible solutions:
proportions
argument to be anp.array
(and not a list as it currently is)proportions
to anp.array
at the beginning of thesegment
methodWhat do you think would be best, @giuliowaitforitdavide ?
Cheers, Marta