Skip to main content

A collection of interpolation methods.

Project description

example workflow

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.3.tar.gz (20.0 kB view details)

Uploaded Source

Built Distributions

polire-0.1.3-py3.8.egg (58.0 kB view details)

Uploaded Source

polire-0.1.3-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file polire-0.1.3.tar.gz.

File metadata

  • Download URL: polire-0.1.3.tar.gz
  • Upload date:
  • Size: 20.0 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

Hashes for polire-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2f3c5d853b1c2ac7e7a8c189490c999cdc7334f0a0708ee706bf94f432affb1a
MD5 425415e1d20a0a0a6601f8984ea88687
BLAKE2b-256 2c1168dcd6aa03abdda9e4c2c8b4ff27fdb81542b0e3071487ea3016b4259d73

See more details on using hashes here.

File details

Details for the file polire-0.1.3-py3.8.egg.

File metadata

  • Download URL: polire-0.1.3-py3.8.egg
  • Upload date:
  • Size: 58.0 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

Hashes for polire-0.1.3-py3.8.egg
Algorithm Hash digest
SHA256 bab33603b32c2b38edc208a16882de50d99f1aa55887a6c68d7a8eaf7d37b04d
MD5 b7d7cef668e4c838449a4f9183f577b5
BLAKE2b-256 bf06204aa83115ac3fa49c68bbbfca2ec6494f03a896520e478f5c9e0aff1433

See more details on using hashes here.

File details

Details for the file polire-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: polire-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 26.3 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

Hashes for polire-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 35ceee1c75ec908acf7d24e72f7523a3c0311177110172e7c81c90ec8e5033ed
MD5 ef1f3a04f26c8d74f53d988209fc5faa
BLAKE2b-256 a75296b096490849c753782c3e488f6b2d1b34ac0721026681bae00000619455

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page