Code Monkey home page Code Monkey logo

Comments (5)

aaronspring avatar aaronspring commented on May 24, 2024

Yep. I will look into it. There is probably even a xr built in function that does something like chunking.

from climpred.

bradyrx avatar bradyrx commented on May 24, 2024

@aaronspring , there is chunking for xarray: http://xarray.pydata.org/en/stable/generated/xarray.Dataset.chunk.html

Which is why I was confused on our call how this chunking differs. If it is actually different than dask/xarray chunking we should probably use different language.

from climpred.

aaronspring avatar aaronspring commented on May 24, 2024

my chunking function is definately different.

the gist of what it does:

  • number_chunks=True: it breaks a dataset with dimension dim into N pieces into a new dataset with dimensions dim and c.
  • chunk_length=True: it breaks a dataset with dimension dim into pieces of length N into a new dataset with dimensions dim and c

Its therefore somehow similar to stack/unstack but not really. The function nicely reflects what I get from the meaning of chunking from a dictionary and from Boer 2004 paper.

Maybe I rename it chunk_Boer? Still not happy about that.

from climpred.

bradyrx avatar bradyrx commented on May 24, 2024

I think for now you are fine to leave it just as "chunking" because we are aware that it's under esmtools.prediction and not xr.chunking. Maybe the doc string can be clear that these are different operations.

This is a low-priority issue, but I'm sure we can find some smart solution through stackexchange. I think it's fine as is, but I'm curious from a programming perspective how to tackle this. It might be good for you to post a question, because I'm not finding anything really.

from climpred.

aaronspring avatar aaronspring commented on May 24, 2024

as it is only an internal function _chunking inside DPP, I think we can close this

from climpred.

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.