Description
diversipy is a collection of algorithms dealing with three different but related topics. The first topic is super-uniform sampling of the unit hypercube. ‘Super-uniform’ in this context means that the obtained point sample should be more uniform than a random uniform sample, which is a desirable property in many applications. One such application is the design of computer experiments, where typically space-filling experimental designs are used. After creation, the samples can be transformed from the unit hypercube to arbitrary cuboids.
The task of subset selection is defined as follows: suppose you have a set of points in R^n and want to select a sample of them distributed as uniformly as possible. This may be necessary because the original set is too large to be processed entirely. The selection problem is related to clustering, with the difference that when using clustering, you usually want to retain the structure of the original point set.
Once one has created (or obtained from somewhere) a point set, one may want to assess its properties. Therefore, diversipy contains several functions to measure diversity and a few related concepts. Several different indicators are offered because they have different advantages and disadvantages (in terms of run time and what they measure).
Example
>>> from diversipy import * >>> design = transform_spread_out(lhd_matrix(50, 2)) # create latin hypercube design >>> subset = psa_select(design, 10) # select subset, for whatever reason >>> unanchored_L2_discrepancy(subset) # calculate discrepancy
Note that points are stored row-wise, in accordance with numpy convention.
Documentation
The documentation is located at https://www.simonwessing.de/diversipy/doc/
Metadata
Release files for diversipy 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| diversipy-0.9.tar.gz | 27.7 kB | Without provenance | Details for diversipy-0.9.tar.gz |
Release files / diversipy-0.9.tar.gz
| Download URL | diversipy-0.9.tar.gz |
|---|---|
| Size | 27.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
165a31e946aa360d49b7dc1470524e2da9582aa774490cb934294040f7222f9c
|
|
BLAKE2b-256 checksum How to use checksums |
53f6136e03239c2205497b482b04e05c961add0638e92d26b0d13b6499fedb40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Security for diversipy 0.9
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.