Skip to main content

Differentiable curve and surface similarity measures.

Project description

GeoSimilarity Logo with text on the side.

GeoSimilarity is a differentiable curve and surface similarity loss function library.

It is built on top of PyTorch and is designed with modularity and extensibility in mind.

[!NOTE]
We are in the very early stages of development and are inviting domain experts for collaboration.

For a flavor of the documentation please refer: Documentation Webpage

Inviting Collaborators

We are in the very early stages of development are are inviting collaborators for:

  • Code Optimization: Benchmark your results and show a clear improvement.
  • Novel Loss Functions: Developing new curve/surface/point cloud similarity measures.
  • Testing: Incorporating testing codes.
  • Improving Documentation: Improving doc-string clarity and including doc tests. Also for improving the documentation website and adding explanations of similarity measures.

We'll use Github issues for tracking pull requests and bugs.

Installation

To pip install run:

$ pip install geosimilarity

Basic Usage

Given a candidate curve $Xc$ and a target curve $Xt$ we can measure the similarity using a given measure as follows:

import torch
import geosimilarity as gs

Xc = torch.randn(10, 2, requires_grad = True)
Xt = torch.randn(10, 2)

# Define a loss object and compute the similarity between curves
loss_fn = gs.MSELoss()
loss = loss_fn(Xc, Xt)

# To modify Xc to fit the target use autograd capacity for gradient stepping
loss.backward()

License

Distributed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geosimilarity-0.0.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file geosimilarity-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: geosimilarity-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for geosimilarity-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4660616f9f8e74f46f62a20f5e6b876100310833e557d1b80933a036e0d2c406
MD5 6ec47857554e125c3cfbf8b8d3130574
BLAKE2b-256 b0d9f937635e086c831e8ff8627d834d5c7d6fcf9b6458f16c3cdf98b8802554

See more details on using hashes here.

Supported by

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