A collection of interpolation methods.
Project description
Polire
The word "interpolation" has Latin origin and is composed of two words - Inter meaning between and Polire meaning to polish.
This repository is a collection of several spatial interpolation algorithms.
Examples
Minimal example of interpolation
import numpy as np
from polire import Kriging
# Data
X = np.random.rand(10, 2) # Spatial 2D points
y = np.random.rand(10) # Observations
X_new = np.random.rand(100, 2) # New spatial points
# Fit
model = Kriging()
model.fit(X, y)
# Predict
y_new = model.predict(X_new)
Supported Interpolation Methods
from polire import (
Kriging, # Best spatial unbiased predictor
GP, # Gaussian process interpolator from GPy
IDW, # Inverse distance weighting
SpatialAverage,
Spline,
Trend,
Random, # Predict uniformly within the observation range, a reasonable baseline
NaturalNeighbor,
CustomInterpolator # Supports any regressor from Scikit-learn
)
Use GP kernels from GPy and regressors from sklearn
from sklearn.linear_model import LinearRegression # or any Scikit-learn regressor
from GPy.kern import Matern32 # or any other GPy kernel
from polire import GP, CustomInterpolator
# GP model
model = GP(Matern32(input_dim=2))
# Sklearn model
model = CustomInterpolator(LinearRegression(normalize = True))
More info
Contributors: S Deepak Narayanan, Zeel B Patel, Apoorv Agnihotri, and Nipun Batra.
This project is a part of Sustainability Lab at IIT Gandhinagar.
Acknowledgement to sklearn template for helping to package into a PiPy package.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
polire-0.1.2.tar.gz
(17.7 kB
view details)
Built Distribution
polire-0.1.2-py3-none-any.whl
(23.8 kB
view details)
File details
Details for the file polire-0.1.2.tar.gz
.
File metadata
- Download URL: polire-0.1.2.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f305ba9891e695f7d3fd93a3ec8ced72280030efd140996ecfec67aa8308c59 |
|
MD5 | 3e644a3e9b839d99296046c514ab2ac7 |
|
BLAKE2b-256 | f4cc09a08c446c1d3e7f1cd98bc31ea7c26d2fb528efd46993a805f404fb110d |
File details
Details for the file polire-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: polire-0.1.2-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf72dfb687ae34cad61443e00fa118ec4cd1536cb63d1ab12519c2cfcce5cfe1 |
|
MD5 | 71e501d4a537ff3b8a91dfa460c9a313 |
|
BLAKE2b-256 | fc4975ac29dc6fcb47a90fb970cd1c21b8fe39d072798e17beff0298df59e961 |