Giter Site home page Giter Site logo

Implementing off-grid sensors about jwave HOT 4 CLOSED

ucl-bug avatar ucl-bug commented on July 26, 2024 1
Implementing off-grid sensors

from jwave.

Comments (4)

tomelse avatar tomelse commented on July 26, 2024 1

@astanziola I've implemented this in a new pull request (#192). There's example code, test code and an updated implementation.

from jwave.

astanziola avatar astanziola commented on July 26, 2024

Hello Thomas. That looks great, thanks a lot! Please do feel absolutely free to open a PR, it would be amazing to have off-grid sensors.

I think this can easily go into the geometry.py file almost as is, although there may be a good argument to start having two separate sources and sensors modules.

I was looking at the comment given by @jgroehl below your gist and I think I agree with him. I can imagine a situation when someone want so do something like

def my_loss_func(sensors_positions: Tuple[np.typing.ArrayLike]:
    sensors = BLISensors(sensors_positions)
    ...
    
sensor_positions_grad = jax.grad(my_loss_func)

In that way the position of the sensors can also be tuned by gradient descent! In that case, the flattening and unflattening methods also need to be changed in the pytree definition.

It would also be good to add some testing for this, for example by reproducing the followings:

But the way the testing is handled in this repo currently is a bit clunky (any suggestion is more than welcome!), so I'm happy to add them afterwards

Thank you for taking time to do this and share it!h

from jwave.

astanziola avatar astanziola commented on July 26, 2024

Hello @tomelse ! Just gauging if you think you would like to make a PR on this? Otherwise I'm happy to take this over (of course acknowledging your contribution!)

from jwave.

tomelse avatar tomelse commented on July 26, 2024

I'll have a look next week, had such a hectic week!

from jwave.

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.