armanmaesumi / torchrbf Goto Github PK
View Code? Open in Web Editor NEWGPU-Accelerated Radial Basis Function (RBF) Interpolation in PyTorch
License: Other
GPU-Accelerated Radial Basis Function (RBF) Interpolation in PyTorch
License: Other
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:
This is the results of interpolated signal from an individual AP. I've visualised it where larger dots == stronger interpolated signal:
This is the results (visualised in red this time) from torchrbf:
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.