Coder Social home page Coder Social logo

Comments (6)

hpages avatar hpages commented on August 27, 2024

@PeteHaitch Would you be open to the possibility of keeping length-1 centers valid in DelayedMatrixStats, at least for a little bit longer? Length-1 centers in DelayedArray, SparseArray and sparseMatrixStats have been supported for a while and they didn't start issuing warnings recently despite the fact that matrixStats doesn't like them anymore. So having them now cause a hard error in DelayedMatrixStats is inconsistent with DelayedArray, SparseArray and sparseMatrixStats .

Also I can't think of anything wrong with supporting length-1 centers -- they're just a convenience like recycling.

If you agree with this, I'll submit a patch to DelayedMatrixStats. The patch will simply recycle length-1 centers to nrow(x) or ncol(x).

Thanks,
H.

from delayedarray.

PeteHaitch avatar PeteHaitch commented on August 27, 2024

Argh sorry for this.
I was trying to follow the defunct-ification by Henrik in matrixStats (HenrikBengtsson/matrixStats#254), since we've (mostly) tried to mimic its API.
A patch would be welcome (it might just be reverting the most recent commits).

from delayedarray.

hpages avatar hpages commented on August 27, 2024

No worries. Working on it. Will also involve patching MatrixGenerics to make things consistent across the board.

from delayedarray.

hpages avatar hpages commented on August 27, 2024

PR for DelayedMatrixStats ready: PeteHaitch/DelayedMatrixStats#101

from delayedarray.

PeteHaitch avatar PeteHaitch commented on August 27, 2024

Thanks, @hpages
I'm in the midst of resolving OSCA build issues and I'll then turn to this (hopefully Friday).

from delayedarray.

hpages avatar hpages commented on August 27, 2024

Fixed by PeteHaitch/DelayedMatrixStats#101

from delayedarray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.