You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearly this pattern could be generalized into something like Apply.
I'm not sure this is a programming model we should be encouraging, though - using Lambda and black-box ops to bind variables prevents Funsor from introspecting or transforming computations like mean or variance that contain meaningful linear structure and ties otherwise abstract mathematical definitions to design and naming decisions specific to tensor operations.
Instead, we should prefer defining new computations with make_funsor and more basic Funsor primitives like Reduce, Binary and Subs wherever possible.
This is a suggestion to create an API similar to https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.apply.html that would allow to apply functions on named axes
The text was updated successfully, but these errors were encountered: