Giter VIP home page Giter VIP logo

Comments (8)

loostrum avatar loostrum commented on August 10, 2024 1

The Pytorch named tensor looks interesting. I see a few pros/cons w.r.t xarray:

  • pro: no need to specify a name for all columns
  • reordering columns seems easier (moving channels is even an explicit example)
  • con: we would need to depend on a very big library for just a small feature
  • con(?): It is a prototype feature, less mature than xarray. The API may change

from dianna.

loostrum avatar loostrum commented on August 10, 2024

I like this a lot and it doesn't look like a huge amount of work. I think the reduction in complexity for the user is worth it.

from dianna.

cwmeijer avatar cwmeijer commented on August 10, 2024

I think this could be its own package/repo as it has little to do with DIANNA other than that we want to use it :-)

We could include some checks that give warnings if the number of channels for an image is not 1 or 3 etc.

from dianna.

egpbos avatar egpbos commented on August 10, 2024

Agreed, could be a spin-off. Just wanted to put the idea out there.

from dianna.

egpbos avatar egpbos commented on August 10, 2024

Maybe good to look into xarray.

from dianna.

loostrum avatar loostrum commented on August 10, 2024

I played around with xarray and implemented something in the xarray branch as a test for #55.

from dianna.

egpbos avatar egpbos commented on August 10, 2024

I came across this as well: https://pytorch.org/docs/stable/named_tensor.html

From what I read, this is not universally supported even within PyTorch itself (let alone outside, of course). Still, may be worth looking into how much exactly and how it compares to xarray.

from dianna.

egpbos avatar egpbos commented on August 10, 2024

Would be nice if conversion between xarray and NamedTensor were possible and easy.

from dianna.

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.