Giter Club home page Giter Club logo

torchrbf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

torchrbf's Issues

Interpolator has different behaviour to scipy RBF

I've setup an interpolator with survey data, to interpolate signal strength of specific wifi APs. The survey data covers the indoor space.

Here is the code setting up scipy interpolator:

    xs = [grid_point.x for grid_point in grid_points]
    ys = [grid_point.y for grid_point in grid_points]
    rssis = [scan['RSSI'] for scan in ap_survey_scans]
    interpolator = Rbf(xs, ys, rssis, function='linear', smooth=20)

Here it is for torchtbf. It runs many orders of magnitude faster with torchrbf ๐Ÿ”ฅ:

    grid_points = torch.tensor([([grid_point.x, grid_point.y]) for grid_point in grid_points])
    rssis = torch.tensor([scan['RSSI'] for scan in ap_survey_scans]).unsqueeze(1)
    interpolator = RBFInterpolator(grid_points, rssis, smoothing=20.0, kernel='linear')

This is the survey data provided, each black dot representing a data point:
Screenshot 2023-08-28 at 09 02 34

This is the results of interpolated signal from an individual AP. I've visualised it where larger dots == stronger interpolated signal:
Screenshot 2023-08-28 at 08 50 07

This is the results (visualised in red this time) from torchrbf:
Screenshot 2023-08-28 at 08 49 44

What's happening here is that outside of the survey area, torchrbf has a harder time interpolating the way the signal should decrease.

Let me know if there's more data I can provide to help resolve this issue (can provide data privately if it's helpful).

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.