-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Labels
API designAPI design & software architectureAPI design & software architecturemodule:probability&simulationprobability distributions and simulatorsprobability distributions and simulators
Description
Currently, the distribution API seems problematic in cases of composite distributions, such as the TransformedDistribution. We should review and possibly alter, or extend, the extension contract.
Three points of issue:
- internally, methods like
_cdfreceive 2Dnp.ndarrayin the array case, butcdfexpectspd.DataFrame, so a naive internal call needs to attach indices to thenp.ndarrayagain. Calling internal_cdfis not an option due to the boilerplate functions. - the contract is undefined on what the
indexandcolumnsof the inner distributions should be, especially when mathematically they are meant to be equal- as a sub-problem, what should happen if a user sets
indexafter construction on the outer distribution - should it also set the inner indices?
- as a sub-problem, what should happen if a user sets
_ilocis not nesting well with distributions, as already discussed in [ENH] Default_ilocand_iatto include handling of composite distribution objects #559
Metadata
Metadata
Assignees
Labels
API designAPI design & software architectureAPI design & software architecturemodule:probability&simulationprobability distributions and simulatorsprobability distributions and simulators