Code Monkey home page Code Monkey logo

Comments (13)

JackKelly avatar JackKelly commented on May 30, 2024 2

Awesome, SGTM! Thank you!

from nowcasting_dataloader.

peterdudfield avatar peterdudfield commented on May 30, 2024

Could I get your advice on this @jacobbieker , happy for the channels strings to be changed to an index of numbers?

from nowcasting_dataloader.

jacobbieker avatar jacobbieker commented on May 30, 2024

What array of strings is it? The issue I see with changing strings ti numbers using the channel name is that if we change what channels we use, it could mess that up easily, incase we don't use all 12 channels

from nowcasting_dataloader.

peterdudfield avatar peterdudfield commented on May 30, 2024

yea so i was thinking of using a mapping from 'channel_name' to an index?

from nowcasting_dataloader.

JackKelly avatar JackKelly commented on May 30, 2024

Will we ever need to give the channel names to Torch? Is it sufficient to identify the channels by the ordering of the channel dimension?

from nowcasting_dataloader.

peterdudfield avatar peterdudfield commented on May 30, 2024

We probably want to make sure that

  • ['name_1', 'name_2']
  • ['name_1', 'name_3']
    are represented differently,

but other that that i think its ok

from nowcasting_dataloader.

jacobbieker avatar jacobbieker commented on May 30, 2024

Yeah, I guess it wouldn't be important for giving Torch the names, I was more going for us to know what is happening, but I guess thats saved in the config anyway!

from nowcasting_dataloader.

JackKelly avatar JackKelly commented on May 30, 2024

Is the main use case to tell the "modality encoding" code which channel is which? In which case, is that encoding done before pytorch?

from nowcasting_dataloader.

jacobbieker avatar jacobbieker commented on May 30, 2024

That isn't encoded at all right now actually, its only encoded in time and space, not channels

from nowcasting_dataloader.

peterdudfield avatar peterdudfield commented on May 30, 2024

PR: #48
This is what I was thinking

  1. Dataset should save the channgel names in the xr.dataset as it useful to see. Although it is also in the config, so we could remove it
  2. converting Dataset to torch, need to change it to indexes (away from strings)

from nowcasting_dataloader.

JackKelly avatar JackKelly commented on May 30, 2024

1 sounds great, thank you!

2 before bothering to convert names to Torch, please can we figure out what the use case is? :)

from nowcasting_dataloader.

jacobbieker avatar jacobbieker commented on May 30, 2024

That isn't encoded at all right now actually, its only encoded in time and space, not channels

Although, now that we are using native resolution images, I guess there will be two modalities, one for HRV and one for the rest of the channels

from nowcasting_dataloader.

peterdudfield avatar peterdudfield commented on May 30, 2024

1 sounds great, thank you!

2 before bothering to convert names to Torch, please can we figure out what the use case is? :)

  1. so perhaps for the moment, we just dont pass the channels names to Torch, and if we come up with a use case we can add it?

from nowcasting_dataloader.

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.