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
{{ message }}
Repository navigation
da.repeat with repeats as list NotImplemented #2946
We often borrow NumPy's documentation for these functions. This is certainly one of the downsides of doing that.
So that checklist is basically something I threw together last night. Wouldn't give it too much credence yet. It definitely does not take into account full functionality being supported. Just whether the function is there and works on some basic inputs. If you have some suggestions on how the checklist could be clarified for issues like this, would be open to hearing them.
Hmm... A naive solution would be to slice out sections of the array and repeat them independently. Though that could result in a lot of overhead for large arrays. A better solution would probably be to wrap up this call to repeat with apply_along_axis. However we would need to make some tweaks to apply_along_axis for this to work. Also this assumes that a 1-D array with length equal to the dimension being repeated in question can comfortably fit in memory.
The check list is not a problem - just ran across it when I searched repeat in the open tickets list to make sure a ticket similar to this was already open. It's a shame that markdown does't half the half checked status [-] that might have been a nice way to indicate some missing functionality well keeping the list concise as it is now.
We've actually found a way round this for now that just removes some accuracy in favour of getting it to fit into memory. So it's not as hard requirement for us at the moment as I thought it was going to be on opening the ticket - so don't feel any obligation to go out your way to prioritise this over anything else you are working on.
Sure that is a good idea. Would like to move that list to the docs where half checks might be an option. Plus it would avoid some issues I've learned about large checks lists in GitHub issues. :)
I see. Well I expect the fix to apply_along_axis will be a one liner TBH. So definitely doable. Can point you to the line if you would like to do a simple PR. ;) Sounds like the data regime you are working in would be sufficiently satisfied with using apply_along_axis for many things (including this case).
Activity
jakirkham commentedon Dec 1, 2017
Thanks for the report.
We often borrow NumPy's documentation for these functions. This is certainly one of the downsides of doing that.
So that checklist is basically something I threw together last night. Wouldn't give it too much credence yet. It definitely does not take into account full functionality being supported. Just whether the function is there and works on some basic inputs. If you have some suggestions on how the checklist could be clarified for issues like this, would be open to hearing them.
Hmm... A naive solution would be to slice out sections of the array and
repeatthem independently. Though that could result in a lot of overhead for large arrays. A better solution would probably be to wrap up this call torepeatwithapply_along_axis. However we would need to make some tweaks toapply_along_axisfor this to work. Also this assumes that a 1-D array with length equal to the dimension being repeated in question can comfortably fit in memory.jamesstidard commentedon Dec 1, 2017
Hi @jakirkham Thanks for the quick response.
The check list is not a problem - just ran across it when I searched
repeatin the open tickets list to make sure a ticket similar to this was already open. It's a shame that markdown does't half the half checked status[-]that might have been a nice way to indicate some missing functionality well keeping the list concise as it is now.We've actually found a way round this for now that just removes some accuracy in favour of getting it to fit into memory. So it's not as hard requirement for us at the moment as I thought it was going to be on opening the ticket - so don't feel any obligation to go out your way to prioritise this over anything else you are working on.
Thanks for your work on dask.
jakirkham commentedon Dec 1, 2017
Sure that is a good idea. Would like to move that list to the docs where half checks might be an option. Plus it would avoid some issues I've learned about large checks lists in GitHub issues. :)
I see. Well I expect the fix to
apply_along_axiswill be a one liner TBH. So definitely doable. Can point you to the line if you would like to do a simple PR. ;) Sounds like the data regime you are working in would be sufficiently satisfied with usingapply_along_axisfor many things (including this case).jakirkham commentedon Feb 22, 2018
@Erstwild, after our discussion in issue ( #3175 ), cc-ing you here as this appears relevant to your use case.