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.
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.
Metadata
Release files for geosimilarity 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geosimilarity-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for geosimilarity-0.0.1-py3-none-any.whl |
Release files / geosimilarity-0.0.1-py3-none-any.whl
| Download URL | geosimilarity-0.0.1-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ad218fec7a979f81f560c943df359284547eb186c1c527b2910f25120695111
|
|
BLAKE2b-256 checksum How to use checksums |
8dde065c49d6d947422274507c6e9ccaf7b6c11c8e35742beb88ab221ce47562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Security for geosimilarity 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.